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

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

Issue 1408023003: Don't persist registrations for whitelists installed from the command line. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/supervised_user/supervised_user_whitelist_service.h
diff --git a/chrome/browser/supervised_user/supervised_user_whitelist_service.h b/chrome/browser/supervised_user/supervised_user_whitelist_service.h
index c820361317e2c6d45586c543c478c1ea6d87a11d..e31f344dcc0e1318384d514a94607a46804412a5 100644
--- a/chrome/browser/supervised_user/supervised_user_whitelist_service.h
+++ b/chrome/browser/supervised_user/supervised_user_whitelist_service.h
@@ -92,10 +92,15 @@ class SupervisedUserWhitelistService : public syncer::SyncableService {
const sync_pb::ManagedUserWhitelistSpecifics& whitelist);
void RemoveWhitelist(base::DictionaryValue* pref_dict, const std::string& id);
+ enum WhitelistSource {
+ FROM_SYNC,
+ FROM_COMMAND_LINE,
+ };
+
// Registers a new or existing whitelist.
void RegisterWhitelist(const std::string& id,
const std::string& name,
- bool new_installation);
+ WhitelistSource source);
void GetLoadedWhitelists(
std::vector<scoped_refptr<SupervisedUserSiteList>>* whitelists);

Powered by Google App Engine
This is Rietveld 408576698