Index: chrome/browser/extensions/bookmark_app_helper.cc |
diff --git a/chrome/browser/extensions/bookmark_app_helper.cc b/chrome/browser/extensions/bookmark_app_helper.cc |
index 0954109b105a18ee6056a52431a37c1188611d4e..7d7a1fc628790f3462fcd24fd5ed00ff2f1ec1ec 100644 |
--- a/chrome/browser/extensions/bookmark_app_helper.cc |
+++ b/chrome/browser/extensions/bookmark_app_helper.cc |
@@ -446,30 +446,12 @@ void BookmarkAppHelper::FinishInstallation(const Extension* extension) { |
} |
#endif |
- // Show the newly installed app in the app launcher, in finder (on Mac) or |
- // chrome://apps. |
- if (IsAppLauncherEnabled()) { |
- AppListService::Get(desktop) |
- ->ShowForAppInstall(current_profile, extension->id(), false); |
#if defined(OS_MACOSX) |
- } else if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kDisableHostedAppShimCreation)) { |
web_app::RevealAppShimInFinderForApp(profile_, extension); |
-#endif |
- } else { |
- chrome::NavigateParams params(current_profile, |
- GURL(chrome::kChromeUIAppsURL), |
- ui::PAGE_TRANSITION_LINK); |
- params.disposition = SINGLETON_TAB; |
- chrome::Navigate(¶ms); |
- |
- content::NotificationService::current()->Notify( |
- chrome::NOTIFICATION_APP_INSTALLED_TO_NTP, |
- content::Source<content::WebContents>(params.target_contents), |
- content::Details<const std::string>(&extension->id())); |
} |
- |
- callback_.Run(extension, web_app_info_); |
jackhou1
2015/02/18 02:56:10
I think you still need to call this.
benwells
2015/02/18 03:10:44
Done.
|
+#endif |
} |
void BookmarkAppHelper::Observe(int type, |