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

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

Issue 5273004: Add "create Application Shortcut" to the app menu on NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for commit. Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 24f7c6fe93ddce7398eace9155dd522f40c730c3..e91f4c78c26df2f36df21c5f7a20c0c1619cadc6 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -610,7 +610,8 @@ TabContents* Browser::OpenApplicationTab(Profile* profile,
DCHECK(extensions_service);
ExtensionPrefs::LaunchType launch_type =
- extensions_service->extension_prefs()->GetLaunchType(extension->id());
+ extensions_service->extension_prefs()->GetLaunchType(
+ extension->id(), ExtensionPrefs::LAUNCH_REGULAR);
UMA_HISTOGRAM_ENUMERATION("Extensions.AppTabLaunchType", launch_type, 100);
int add_type = TabStripModel::ADD_SELECTED;
if (launch_type == ExtensionPrefs::LAUNCH_PINNED)
@@ -3130,7 +3131,7 @@ void Browser::OnDidGetApplicationInfo(TabContents* tab_contents,
switch (pending_web_app_action_) {
case CREATE_SHORTCUT: {
- window()->ShowCreateShortcutsDialog(current_tab);
+ window()->ShowCreateWebAppShortcutsDialog(current_tab);
break;
}
case UPDATE_SHORTCUT: {
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698