Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2566)

Unified Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 10699057: Move application creation and extension install prompt showing off Browser and onto ExtensionTabHel… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/extensions/application_launch.cc
===================================================================
--- chrome/browser/ui/extensions/application_launch.cc (revision 145357)
+++ chrome/browser/ui/extensions/application_launch.cc (working copy)
@@ -245,13 +245,15 @@
return NULL;
if (update_shortcut) {
+ TabContents* tab_contents = TabContents::FromWebContents(tab);
// Set UPDATE_SHORTCUT as the pending web app action. This action is picked
// up in LoadingStateChanged to schedule a GetApplicationInfo. And when
// the web app info is available, ExtensionTabHelper notifies Browser via
// OnDidGetApplicationInfo, which calls
// web_app::UpdateShortcutForTabContents when it sees UPDATE_SHORTCUT as
// pending web app action.
- app_browser->set_pending_web_app_action(Browser::UPDATE_SHORTCUT);
+ tab_contents->extension_tab_helper()->set_pending_web_app_action(
+ ExtensionTabHelper::UPDATE_SHORTCUT);
}
return tab;
}

Powered by Google App Engine
This is Rietveld 408576698