Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "chrome/browser/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 254 | 254 |
| 255 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 255 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
| 256 #include "chrome/browser/ui/startup/default_browser_prompt.h" | 256 #include "chrome/browser/ui/startup/default_browser_prompt.h" |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 #if defined(TOOLKIT_VIEWS) | 259 #if defined(TOOLKIT_VIEWS) |
| 260 #include "chrome/browser/ui/browser_view_prefs.h" | 260 #include "chrome/browser/ui/browser_view_prefs.h" |
| 261 #endif | 261 #endif |
| 262 | 262 |
| 263 #if defined(USE_ASH) | 263 #if defined(USE_ASH) |
| 264 #include "ash/system/night_light/night_light_controller.h" | |
| 264 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 265 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 265 #endif | 266 #endif |
| 266 | 267 |
| 267 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 268 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 268 #include "chrome/browser/ui/webui/md_history_ui.h" | 269 #include "chrome/browser/ui/webui/md_history_ui.h" |
| 269 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" | 270 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
| 270 #endif | 271 #endif |
| 271 | 272 |
| 272 namespace { | 273 namespace { |
| 273 | 274 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 637 registry); | 638 registry); |
| 638 #endif | 639 #endif |
| 639 | 640 |
| 640 #if defined(TOOLKIT_VIEWS) | 641 #if defined(TOOLKIT_VIEWS) |
| 641 RegisterBrowserViewProfilePrefs(registry); | 642 RegisterBrowserViewProfilePrefs(registry); |
| 642 RegisterInvertBubbleUserPrefs(registry); | 643 RegisterInvertBubbleUserPrefs(registry); |
| 643 #endif | 644 #endif |
| 644 | 645 |
| 645 #if defined(USE_ASH) | 646 #if defined(USE_ASH) |
| 646 ash::launcher::RegisterChromeLauncherUserPrefs(registry); | 647 ash::launcher::RegisterChromeLauncherUserPrefs(registry); |
| 648 ash::NightLightController::RegisterPrefs(registry); | |
|
James Cook
2017/05/05 17:12:33
Can this be done inside of ash somewhere, like may
afakhry
2017/05/05 20:04:12
I don't think we can do it in Shell init, but I mi
| |
| 647 #endif | 649 #endif |
| 648 | 650 |
| 649 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 651 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 650 MdHistoryUI::RegisterProfilePrefs(registry); | 652 MdHistoryUI::RegisterProfilePrefs(registry); |
| 651 settings::MdSettingsUI::RegisterProfilePrefs(registry); | 653 settings::MdSettingsUI::RegisterProfilePrefs(registry); |
| 652 #endif | 654 #endif |
| 653 | 655 |
| 654 // Preferences registered only for migration (clearing or moving to a new key) | 656 // Preferences registered only for migration (clearing or moving to a new key) |
| 655 // go here. | 657 // go here. |
| 656 | 658 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 818 // default values for all prefs locally. Since we already have the defaults it | 820 // default values for all prefs locally. Since we already have the defaults it |
| 819 // would be wasteful to request them from the service by connecting to the | 821 // would be wasteful to request them from the service by connecting to the |
| 820 // DEFAULT_STORE. | 822 // DEFAULT_STORE. |
| 821 // TODO(sammc): Once we have this distinction, connect to the default pref | 823 // TODO(sammc): Once we have this distinction, connect to the default pref |
| 822 // store here (by erasing it from |pref_stores|). | 824 // store here (by erasing it from |pref_stores|). |
| 823 pref_stores.erase(PrefValueStore::USER_STORE); | 825 pref_stores.erase(PrefValueStore::USER_STORE); |
| 824 return pref_stores; | 826 return pref_stores; |
| 825 } | 827 } |
| 826 | 828 |
| 827 } // namespace chrome | 829 } // namespace chrome |
| OLD | NEW |