Commit 4ce73611 authored by kinaba@chromium.org's avatar kinaba@chromium.org

Close crashed incognito-mode app's shell window.

ExtensionService is shared between off-the-record and original profiles
(see ExtensionSystemImpl) and notifies unload events always from
the original profile. ShellWindow should therefore observe the original profile as well.

BUG=281675

Review URL: https://codereview.chromium.org/138843006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247976 0039d316-1c4b-4281-b951-d872f2087c98
parent 9637d675
......@@ -208,7 +208,7 @@ void ShellWindow::Init(const GURL& url,
// properly. In particular, on Windows, the view's clickthrough region needs
// to be set.
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
content::Source<Profile>(profile_));
content::Source<Profile>(profile_->GetOriginalProfile()));
// Close when the browser process is exiting.
registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING,
content::NotificationService::AllSources());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment