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

Side by Side Diff: chrome/browser/background_mode_manager.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 #else 375 #else
376 bool background_mode_enabled = 376 bool background_mode_enabled =
377 !command_line->HasSwitch(switches::kDisableBackgroundMode) && 377 !command_line->HasSwitch(switches::kDisableBackgroundMode) &&
378 !command_line->HasSwitch(switches::kDisableExtensions); 378 !command_line->HasSwitch(switches::kDisableExtensions);
379 return background_mode_enabled; 379 return background_mode_enabled;
380 #endif 380 #endif
381 } 381 }
382 382
383 // static 383 // static
384 void BackgroundModeManager::RegisterPrefs(PrefService* prefs) { 384 void BackgroundModeManager::RegisterPrefs(PrefService* prefs) {
385 prefs->RegisterBooleanPref(prefs::kUserCreatedLoginItem, false); 385 prefs->RegisterBooleanPref(prefs::kUserCreatedLoginItem,
386 false,
387 false /* don't sync pref */);
386 } 388 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698