diff options
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/app_launcher_handler.cc | 4 | ||||
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 3 | ||||
-rw-r--r-- | chrome/browser/dom_ui/shown_sections_handler.cc | 6 |
3 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/dom_ui/app_launcher_handler.cc b/chrome/browser/dom_ui/app_launcher_handler.cc index 2726cf6..8470f6b 100644 --- a/chrome/browser/dom_ui/app_launcher_handler.cc +++ b/chrome/browser/dom_ui/app_launcher_handler.cc @@ -89,9 +89,9 @@ void AppLauncherHandler::HandleGetApps(const Value* value) { // TODO(aa): Decide the final values for these and remove the switches. gallery_title = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( - switches::kAppsGalleryTitle); + switches::kAppLauncherGalleryTitle); gallery_url = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( - switches::kAppsGalleryURL); + switches::kAppLauncherGalleryURL); bool show_debug_link = CommandLine::ForCurrentProcess()->HasSwitch( switches::kAppsDebug); diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index 693618e..39a2289 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -505,7 +505,8 @@ NewTabUI::NewTabUI(TabContents* contents) if (ProfileSyncService::IsSyncEnabled()) { AddMessageHandler((new NewTabPageSyncHandler())->Attach(this)); } - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableApps)) { + if (CommandLine::ForCurrentProcess()->HasSwitch( + switches::kEnableExtensionApps)) { ExtensionsService* service = GetProfile()->GetExtensionsService(); AddMessageHandler((new AppLauncherHandler(service))->Attach(this)); } diff --git a/chrome/browser/dom_ui/shown_sections_handler.cc b/chrome/browser/dom_ui/shown_sections_handler.cc index 501c1d8..9b47274 100644 --- a/chrome/browser/dom_ui/shown_sections_handler.cc +++ b/chrome/browser/dom_ui/shown_sections_handler.cc @@ -87,7 +87,8 @@ void ShownSectionsHandler::SetFirstAppLauncherRunPref( // If we have turned on Apps we want to hide most visited and recent to give // more focus to the Apps section. We do not do this in MigrateUserPrefs // because the pref version should not depend on command line switches. - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableApps) && + if (CommandLine::ForCurrentProcess()->HasSwitch( + switches::kEnableExtensionApps) && !pref_service->GetBoolean(prefs::kNTPAppLauncherFirstRun)) { int sections = pref_service->GetInteger(prefs::kNTPShownSections); sections &= ~THUMB; @@ -101,7 +102,8 @@ void ShownSectionsHandler::SetFirstAppLauncherRunPref( void ShownSectionsHandler::RegisterUserPrefs(PrefService* pref_service) { pref_service->RegisterIntegerPref(prefs::kNTPShownSections, THUMB | RECENT | TIPS | SYNC); - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableApps)) { + if (CommandLine::ForCurrentProcess()->HasSwitch( + switches::kEnableExtensionApps)) { pref_service->RegisterBooleanPref(prefs::kNTPAppLauncherFirstRun, false); } } |