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

Unified Diff: chrome/browser/background/background_mode_manager_mac.mm

Issue 8676024: Mac: Fix build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_mode_manager_mac.mm
diff --git a/chrome/browser/background/background_mode_manager_mac.mm b/chrome/browser/background/background_mode_manager_mac.mm
index e0ff3426a7e7b9b066424144351368cf26d8bc7b..a0e15cc7d4b9b133aff3ef32519c77b57ebe18e4 100644
--- a/chrome/browser/background/background_mode_manager_mac.mm
+++ b/chrome/browser/background/background_mode_manager_mac.mm
@@ -28,6 +28,11 @@ void DisableLaunchOnStartupCallback() {
base::mac::RemoveFromLoginItems();
}
+void SetUserCreatedLoginItemPrefCallback() {
+ PrefService* service = g_browser_process->local_state();
+ service->SetBoolean(prefs::kUserCreatedLoginItem, true);
+}
+
void EnableLaunchOnStartupCallback() {
// Return if Chrome is already a Login Item (avoid overriding user choice).
if (base::mac::CheckLoginItemStatus(NULL)) {
@@ -44,11 +49,6 @@ void EnableLaunchOnStartupCallback() {
base::mac::AddToLoginItems(true); // Hide on startup.
}
-void SetUserCreatedLoginItemPrefCallback() {
- PrefService* service = g_browser_process->local_state();
- service->SetBoolean(prefs::kUserCreatedLoginItem, true);
-}
-
} // namespace
void BackgroundModeManager::EnableLaunchOnStartup(bool should_launch) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698