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

Unified Diff: chrome/browser/lifetime/application_lifetime_win.cc

Issue 202993002: Fix "unreachable code" warnings (MSVC warning 4702) in chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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/lifetime/application_lifetime_win.cc
===================================================================
--- chrome/browser/lifetime/application_lifetime_win.cc (revision 256983)
+++ chrome/browser/lifetime/application_lifetime_win.cc (working copy)
@@ -46,9 +46,8 @@
#if defined(USE_AURA)
// This function should be called only from non aura code path.
// In aura/ash windows world browser process is always non metro.
- CHECK(false);
- return;
-#endif
+ NOTREACHED();
+#else
// 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();
@@ -60,6 +59,7 @@
upgrade_util::kRelaunchModeMetro);
}
AttemptRestart();
+#endif
}
#if defined(USE_AURA)

Powered by Google App Engine
This is Rietveld 408576698