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

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

Issue 1843523002: ChromeOS: Add SystemTimezoneAutomaticDetection policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@596690--Implement-better-timezone-detection--refactoring-before-policy
Patch Set: Created 4 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
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 9
10 #include "ash/shell_observer.h" 10 #include "ash/shell_observer.h"
(...skipping 20 matching lines...) Expand all
31 31
32 namespace chromeos { 32 namespace chromeos {
33 33
34 class User; 34 class User;
35 35
36 namespace input_method { 36 namespace input_method {
37 class InputMethodManager; 37 class InputMethodManager;
38 class InputMethodSyncer; 38 class InputMethodSyncer;
39 } 39 }
40 40
41 // This is a set of possible values of SystemTimezoneAutomaticDetection device
42 // policy. It should be kept in sync with enum AutomaticTimezoneDetectionType
43 // in chrome_device_policy.proto .
44 enum ResolveDeviceTimezoneByGeolocationPolicyValues {
45 USERS_DECIDE = 0,
46 DISABLED = 1,
47 IP_ONLY = 2,
48 SEND_WIFI_ACCESS_POINTS = 3,
49 NUM_ELEMENTS
50 };
stevenjb 2016/03/29 17:01:24 Why not include the pb.h file directly where this
Alexander Alekseev 2016/03/30 03:07:23 Done.
51
41 // The Preferences class handles Chrome OS preferences. When the class 52 // The Preferences class handles Chrome OS preferences. When the class
42 // is first initialized, it will initialize the OS settings to what's stored in 53 // is first initialized, it will initialize the OS settings to what's stored in
43 // the preferences. These include touchpad settings, etc. 54 // the preferences. These include touchpad settings, etc.
44 // When the preferences change, we change the settings to reflect the new value. 55 // When the preferences change, we change the settings to reflect the new value.
45 class Preferences : public syncable_prefs::PrefServiceSyncableObserver, 56 class Preferences : public syncable_prefs::PrefServiceSyncableObserver,
46 public ash::ShellObserver, 57 public ash::ShellObserver,
47 public user_manager::UserManager::UserSessionStateObserver { 58 public user_manager::UserManager::UserSessionStateObserver {
48 public: 59 public:
49 Preferences(); 60 Preferences();
50 explicit Preferences( 61 explicit Preferences(
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 scoped_refptr<input_method::InputMethodManager::State> ime_state_; 170 scoped_refptr<input_method::InputMethodManager::State> ime_state_;
160 171
161 scoped_ptr<input_method::InputMethodSyncer> input_method_syncer_; 172 scoped_ptr<input_method::InputMethodSyncer> input_method_syncer_;
162 173
163 DISALLOW_COPY_AND_ASSIGN(Preferences); 174 DISALLOW_COPY_AND_ASSIGN(Preferences);
164 }; 175 };
165 176
166 } // namespace chromeos 177 } // namespace chromeos
167 178
168 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_ 179 #endif // CHROME_BROWSER_CHROMEOS_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698