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

Side by Side Diff: chrome/browser/chromeos/preferences.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
6 #define CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 6 #define CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 // When the preferences change, we change the settings to reflect the new value. 33 // When the preferences change, we change the settings to reflect the new value.
34 class Preferences : public PrefServiceSyncableObserver { 34 class Preferences : public PrefServiceSyncableObserver {
35 public: 35 public:
36 Preferences(); 36 Preferences();
37 explicit Preferences( 37 explicit Preferences(
38 input_method::InputMethodManager* input_method_manager); // for testing 38 input_method::InputMethodManager* input_method_manager); // for testing
39 virtual ~Preferences(); 39 virtual ~Preferences();
40 40
41 // These method will register the prefs associated with Chrome OS settings. 41 // These method will register the prefs associated with Chrome OS settings.
42 static void RegisterPrefs(PrefRegistrySimple* registry); 42 static void RegisterPrefs(PrefRegistrySimple* registry);
43 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 43 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
44 44
45 // This method will initialize Chrome OS settings to values in user prefs. 45 // This method will initialize Chrome OS settings to values in user prefs.
46 void Init(PrefServiceSyncable* prefs); 46 void Init(PrefServiceSyncable* prefs);
47 47
48 void InitUserPrefsForTesting(PrefServiceSyncable* prefs); 48 void InitUserPrefsForTesting(PrefServiceSyncable* prefs);
49 void SetInputMethodListForTesting(); 49 void SetInputMethodListForTesting();
50 50
51 private: 51 private:
52 // Initializes all member prefs. 52 // Initializes all member prefs.
53 void InitUserPrefs(PrefServiceSyncable* prefs); 53 void InitUserPrefs(PrefServiceSyncable* prefs);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 BooleanPrefMember power_allow_screen_wake_locks_; 187 BooleanPrefMember power_allow_screen_wake_locks_;
188 DoublePrefMember power_presentation_screen_dim_delay_factor_; 188 DoublePrefMember power_presentation_screen_dim_delay_factor_;
189 DoublePrefMember power_user_activity_screen_dim_delay_factor_; 189 DoublePrefMember power_user_activity_screen_dim_delay_factor_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(Preferences); 191 DISALLOW_COPY_AND_ASSIGN(Preferences);
192 }; 192 };
193 193
194 } // namespace chromeos 194 } // namespace chromeos
195 195
196 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 196 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698