| Index: chrome/browser/extensions/extension_install_ui.cc
|
| diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc
|
| index f0634d33356b668bb919e41972bcc13c239bed70..3f3af1237de2ac93be57588a3b6d49e7d299ac2a 100644
|
| --- a/chrome/browser/extensions/extension_install_ui.cc
|
| +++ b/chrome/browser/extensions/extension_install_ui.cc
|
| @@ -133,10 +133,13 @@ void ExtensionInstallUI::OnInstallSuccess(const Extension* extension,
|
| return;
|
| }
|
|
|
| - // Note that browser actions don't appear in incognito mode initially,
|
| - // so be sure to use a normal browser window.
|
| Profile* profile = profile_;
|
| - if (extension->browser_action())
|
| + // Browser actions don't appear in incognito mode initially,
|
| + // so be sure to use a normal browser window. The apps panel (which
|
| + // has a nice animation for the newly installed app) is not available
|
| + // in incognito mode (until http://crbug.com/63751 is fixed) so we need a
|
| + // normal browser window for that too.
|
| + if (extension->browser_action() || extension->is_app())
|
| profile = profile->GetOriginalProfile();
|
| Browser* browser = Browser::GetOrCreateTabbedBrowser(profile);
|
| if (browser->tab_count() == 0)
|
|
|