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

Unified Diff: chrome/browser/chromeos/ownership/fake_owner_settings_service.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: Use settings provider to set read-only device settings. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/ownership/fake_owner_settings_service.h
diff --git a/chrome/browser/chromeos/ownership/fake_owner_settings_service.h b/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
index bed4d066792373a170db9a4dadaa7a41f08ccfaf..8a0bee2f0f2749f1ccf3a0c5dca72fdaf13e638b 100644
--- a/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
+++ b/chrome/browser/chromeos/ownership/fake_owner_settings_service.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
+#include "chrome/browser/chromeos/settings/cros_settings.h"
Mattias Nissler (ping if slow) 2015/03/30 14:45:46 not needed?
class Profile;
@@ -19,6 +20,7 @@ namespace chromeos {
class FakeOwnerSettingsService : public OwnerSettingsServiceChromeOS {
public:
+ explicit FakeOwnerSettingsService(Profile* profile);
FakeOwnerSettingsService(
Profile* profile,
const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
@@ -36,6 +38,7 @@ class FakeOwnerSettingsService : public OwnerSettingsServiceChromeOS {
void SetManagementSettings(
const ManagementSettings& settings,
const OnManagementSettingsSetCallback& callback) override;
+ bool Set(const std::string& setting, const base::Value& value) override;
private:
bool set_management_settings_result_;

Powered by Google App Engine
This is Rietveld 408576698