[Panels] Fix crash when killing panel extension from TaskManager.

When Panel closes, it destroys the WebContents triggering WEB_CONTENTS_DISCONNECTED notification. However, when the Panel is closed due to "End Process" from TaskManager window, the notification is triggered by RenderViewGone and the WebContents still exist. TaskManager needs to remove Panel from the resource list in both scenarios.

TBR=yoshiki
BUG=157365
TEST=TaskManagerBrowserTest.KillPanelExtension


Review URL: https://chromiumcodereview.appspot.com/11246005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163895 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed