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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2857103007: [Night Light] CL2: Ash and system tray work (Closed)
Patch Set: Update comment Created 3 years, 7 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
« no previous file with comments | « ash/system/tray/system_tray_item.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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/shell.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
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 RegisterChromeLauncherUserPrefs(registry); 647 RegisterChromeLauncherUserPrefs(registry);
648 ash::Shell::RegisterPrefs(registry);
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
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
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_item.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698