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

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

Issue 10928064: Fix the blocked pluigin infobar for metro mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « chrome/browser/plugin_infobar_delegates.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.cc
===================================================================
--- chrome/browser/ui/browser_command_controller.cc (revision 155263)
+++ chrome/browser/ui/browser_command_controller.cc (working copy)
@@ -68,18 +68,6 @@
return false;
}
-#if defined(OS_WIN)
-void RestartWithModeSwitch() {
- PrefService* prefs = g_browser_process->local_state();
- if (!prefs)
- return;
- if (!prefs->HasPrefPath(prefs::kRestartSwitchMode))
- return;
- prefs->SetBoolean(prefs::kRestartSwitchMode, true);
- browser::AttemptRestart();
-}
-#endif
-
} // namespace
namespace chrome {
@@ -352,10 +340,8 @@
browser_->SetMetroSnapMode(false);
break;
case IDC_WIN8_DESKTOP_RESTART:
- RestartWithModeSwitch();
- break;
case IDC_WIN8_METRO_RESTART:
- RestartWithModeSwitch();
+ browser::AttemptRestartWithModeSwitch();
break;
#endif
« no previous file with comments | « chrome/browser/plugin_infobar_delegates.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698