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

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

Issue 1019283004: Switch to direct use of OwnerSettingsServiceChromeOS::Set() in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rearrange device settings list. Created 5 years, 9 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 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 content::NotificationRegistrar registrar_; 189 content::NotificationRegistrar registrar_;
190 190
191 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> weak_factory_; 191 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> weak_factory_;
192 192
193 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> store_settings_factory_; 193 base::WeakPtrFactory<OwnerSettingsServiceChromeOS> store_settings_factory_;
194 194
195 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS); 195 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOS);
196 }; 196 };
197 197
198 // Helper class for tests. Allows to set some of the settings that are normally
199 // read-only.
200 class ScopedTestOwnerSettings {
201 public:
202 ScopedTestOwnerSettings();
203 ~ScopedTestOwnerSettings();
204
205 private:
206 DISALLOW_COPY_AND_ASSIGN(ScopedTestOwnerSettings);
207 };
208
198 } // namespace chromeos 209 } // namespace chromeos
199 210
200 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_ 211 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698