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

Unified Diff: chrome/browser/chromeos/policy/device_local_account.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: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/device_local_account.h
diff --git a/chrome/browser/chromeos/policy/device_local_account.h b/chrome/browser/chromeos/policy/device_local_account.h
index 69a74806880ab400c103c025b3ac12ce7701ad6a..88271192ab4c6c2393bbc7c51ccaa36ddcae60d3 100644
--- a/chrome/browser/chromeos/policy/device_local_account.h
+++ b/chrome/browser/chromeos/policy/device_local_account.h
@@ -10,6 +10,7 @@
namespace chromeos {
class CrosSettings;
+class OwnerSettingsServiceChromeOS;
}
namespace policy {
@@ -64,12 +65,11 @@ std::string GenerateDeviceLocalAccountUserId(const std::string& account_id,
bool IsDeviceLocalAccountUser(const std::string& user_id,
DeviceLocalAccount::Type* type);
-// Stores a list of device-local accounts in |cros_settings|. The accounts are
-// stored as a list of dictionaries with each dictionary containing the
-// information about one |DeviceLocalAccount|.
-void SetDeviceLocalAccounts(
- chromeos::CrosSettings* cros_settings,
- const std::vector<DeviceLocalAccount>& accounts);
+// Stores a list of device-local accounts in |service|. The accounts are stored
+// as a list of dictionaries with each dictionary containing the information
+// about one |DeviceLocalAccount|.
+void SetDeviceLocalAccounts(chromeos::OwnerSettingsServiceChromeOS* service,
+ const std::vector<DeviceLocalAccount>& accounts);
// Retrieves a list of device-local accounts from |cros_settings|.
std::vector<DeviceLocalAccount> GetDeviceLocalAccounts(

Powered by Google App Engine
This is Rietveld 408576698