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

Unified Diff: chrome/browser/background_mode_manager.cc

Issue 6037010: Enable background mode on Mac by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/app
Patch Set: Created 10 years 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/about_flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background_mode_manager.cc
diff --git a/chrome/browser/background_mode_manager.cc b/chrome/browser/background_mode_manager.cc
index c3ffdef1392d29409f93ee73528acdd8c3823824..b72e8c1e6b1e8a1f4a63f99129dd81e6f4682f5e 100644
--- a/chrome/browser/background_mode_manager.cc
+++ b/chrome/browser/background_mode_manager.cc
@@ -368,9 +368,9 @@ bool BackgroundModeManager::IsBackgroundModeEnabled(
bool background_mode_enabled =
!command_line->HasSwitch(switches::kDisableBackgroundMode) &&
!command_line->HasSwitch(switches::kDisableExtensions);
-#if !defined(OS_WIN)
- // BackgroundMode is enabled by default on windows. On other platforms, it
- // is enabled via about:flags.
+#if !(defined(OS_WIN) || defined(OS_MACOSX))
+ // BackgroundMode is enabled by default on windows and mac. On other
+ // platforms, it is enabled via about:flags.
background_mode_enabled = background_mode_enabled &&
command_line->HasSwitch(switches::kEnableBackgroundMode);
#endif
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698