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

Unified Diff: chrome/browser/lifetime/application_lifetime.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/lifetime/application_lifetime.h ('k') | chrome/browser/plugin_infobar_delegates.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/lifetime/application_lifetime.cc
===================================================================
--- chrome/browser/lifetime/application_lifetime.cc (revision 155262)
+++ chrome/browser/lifetime/application_lifetime.cc (working copy)
@@ -257,6 +257,18 @@
#endif
}
+#if defined(OS_WIN)
+void AttemptRestartWithModeSwitch() {
+ // The kRestartSwitchMode preference does not exists for Windows 7 and older
+ // operating systems so there is no need for OS version check.
+ PrefService* prefs = g_browser_process->local_state();
+ if (!prefs->HasPrefPath(prefs::kRestartSwitchMode))
+ return;
+ prefs->SetBoolean(prefs::kRestartSwitchMode, true);
+ browser::AttemptRestart();
+}
+#endif
+
void AttemptExit() {
// If we know that all browsers can be closed without blocking,
// don't notify users of crashes beyond this point.
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.h ('k') | chrome/browser/plugin_infobar_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698