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

Side by Side Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h

Issue 666363002: DeviceSettingsProvider's write path uses OwnerSettingsService now. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years, 2 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/ownership/owner_settings_service_chromeos.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 public DeviceSettingsService::Observer { 40 public DeviceSettingsService::Observer {
41 public: 41 public:
42 virtual ~OwnerSettingsServiceChromeOS(); 42 virtual ~OwnerSettingsServiceChromeOS();
43 43
44 void OnTPMTokenReady(bool tpm_token_enabled); 44 void OnTPMTokenReady(bool tpm_token_enabled);
45 45
46 // ownership::OwnerSettingsService implementation: 46 // ownership::OwnerSettingsService implementation:
47 virtual bool HandlesSetting(const std::string& setting) override; 47 virtual bool HandlesSetting(const std::string& setting) override;
48 virtual bool Set(const std::string& setting, 48 virtual bool Set(const std::string& setting,
49 const base::Value& value) override; 49 const base::Value& value) override;
50 virtual bool CommitTentativeDeviceSettings(
51 scoped_ptr<enterprise_management::PolicyData> policy) override;
50 52
51 // NotificationObserver implementation: 53 // NotificationObserver implementation:
52 virtual void Observe(int type, 54 virtual void Observe(int type,
53 const content::NotificationSource& source, 55 const content::NotificationSource& source,
54 const content::NotificationDetails& details) override; 56 const content::NotificationDetails& details) override;
55 57
56 // SessionManagerClient::Observer: 58 // SessionManagerClient::Observer:
57 virtual void OwnerKeySet(bool success) override; 59 virtual void OwnerKeySet(bool success) override;
58 60
59 // DeviceSettingsService::Observer: 61 // DeviceSettingsService::Observer:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> weak_factory_; 151 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> weak_factory_;
150 152
151 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> store_settings_factory_; 153 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> store_settings_factory_;
152 154
153 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS); 155 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS);
154 }; 156 };
155 157
156 } // namespace chromeos 158 } // namespace chromeos
157 159
158 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ 160 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698