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

Unified Diff: chrome/browser/supervised_user/supervised_user_settings_service.h

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: Fixing the build again! Created 4 years, 6 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/supervised_user/supervised_user_settings_service.h
diff --git a/chrome/browser/supervised_user/supervised_user_settings_service.h b/chrome/browser/supervised_user/supervised_user_settings_service.h
index da91256dee9c2b23b0ec5aa37d21b4d8847a7fed..fc0a06bc35ba80dd1634e89687259603d130079f 100644
--- a/chrome/browser/supervised_user/supervised_user_settings_service.h
+++ b/chrome/browser/supervised_user/supervised_user_settings_service.h
@@ -112,6 +112,12 @@ class SupervisedUserSettingsService : public KeyedService,
// An example of an uploaded item is an access request to a blocked URL.
void UploadItem(const std::string& key, std::unique_ptr<base::Value> value);
+ // Updates supervised user setting and uploads it to the Sync server.
+ // An example is when an extension updates without permission
+ // increase, the approved version information should be updated accordingly.
+ void UpdateSetting(const std::string& key,
+ std::unique_ptr<base::Value> value);
+
// Sets the setting with the given |key| to a copy of the given |value|.
void SetLocalSetting(const std::string& key,
std::unique_ptr<base::Value> value);
@@ -159,6 +165,9 @@ class SupervisedUserSettingsService : public KeyedService,
// subclass whenever the settings change.
void InformSubscribers();
+ void PushItemToSync(const std::string& key,
+ std::unique_ptr<base::Value> value);
+
// Used for persisting the settings. Unlike other PrefStores, this one is not
// directly hooked up to the PrefService.
scoped_refptr<PersistentPrefStore> store_;

Powered by Google App Engine
This is Rietveld 408576698