| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |