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

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

Issue 10689175: Refactored code for timezone settings. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added missing comment. Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/device_settings_provider.cc » ('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 (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_DEVICE_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "chrome/browser/chromeos/cros_settings_provider.h" 14 #include "chrome/browser/chromeos/cros_settings_provider.h"
15 #include "chrome/browser/chromeos/login/ownership_service.h" 15 #include "chrome/browser/chromeos/login/ownership_service.h"
16 #include "chrome/browser/chromeos/signed_settings_migration_helper.h" 16 #include "chrome/browser/chromeos/signed_settings_migration_helper.h"
17 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h"
18 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 17 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
19 #include "chrome/browser/prefs/pref_value_map.h" 18 #include "chrome/browser/prefs/pref_value_map.h"
20 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
21 20
22 namespace base { 21 namespace base {
23 class Value; 22 class Value;
24 } 23 }
25 24
25 namespace enterprise_management {
26 class ChromeDeviceSettingsProto;
27 } // namespace enterprise_management
28
26 namespace chromeos { 29 namespace chromeos {
27 30
28 // CrosSettingsProvider implementation that works with SignedSettings. 31 // CrosSettingsProvider implementation that works with SignedSettings.
29 class DeviceSettingsProvider : public CrosSettingsProvider, 32 class DeviceSettingsProvider : public CrosSettingsProvider,
30 public content::NotificationObserver { 33 public content::NotificationObserver {
31 public: 34 public:
32 DeviceSettingsProvider(const NotifyObserversCallback& notify_cb, 35 DeviceSettingsProvider(const NotifyObserversCallback& notify_cb,
33 SignedSettingsHelper* signed_settings_helper); 36 SignedSettingsHelper* signed_settings_helper);
34 virtual ~DeviceSettingsProvider(); 37 virtual ~DeviceSettingsProvider();
35 38
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 InitializationTestUnowned); 164 InitializationTestUnowned);
162 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, 165 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest,
163 PolicyFailedPermanentlyNotification); 166 PolicyFailedPermanentlyNotification);
164 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification); 167 FRIEND_TEST_ALL_PREFIXES(DeviceSettingsProviderTest, PolicyLoadNotification);
165 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider); 168 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsProvider);
166 }; 169 };
167 170
168 } // namespace chromeos 171 } // namespace chromeos
169 172
170 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_ 173 #endif // CHROME_BROWSER_CHROMEOS_DEVICE_SETTINGS_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698