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

Unified Diff: chrome/browser/supervised_user/supervised_user_service.cc

Issue 664313004: SupervisedUserService cleanup: remove some dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_service.cc
diff --git a/chrome/browser/supervised_user/supervised_user_service.cc b/chrome/browser/supervised_user/supervised_user_service.cc
index 50325162b78785890d10bfb01bd034652c145161..2015db6506ea754f2f5546dece538cd284609c62 100644
--- a/chrome/browser/supervised_user/supervised_user_service.cc
+++ b/chrome/browser/supervised_user/supervised_user_service.cc
@@ -662,43 +662,6 @@ void SupervisedUserService::AddAccessRequest(const GURL& url,
0);
}
-SupervisedUserService::ManualBehavior
-SupervisedUserService::GetManualBehaviorForHost(
- const std::string& hostname) {
- const base::DictionaryValue* dict =
- profile_->GetPrefs()->GetDictionary(prefs::kSupervisedUserManualHosts);
- bool allow = false;
- if (!dict->GetBooleanWithoutPathExpansion(hostname, &allow))
- return MANUAL_NONE;
-
- return allow ? MANUAL_ALLOW : MANUAL_BLOCK;
-}
-
-SupervisedUserService::ManualBehavior
-SupervisedUserService::GetManualBehaviorForURL(
- const GURL& url) {
- const base::DictionaryValue* dict =
- profile_->GetPrefs()->GetDictionary(prefs::kSupervisedUserManualURLs);
- GURL normalized_url = SupervisedUserURLFilter::Normalize(url);
- bool allow = false;
- if (!dict->GetBooleanWithoutPathExpansion(normalized_url.spec(), &allow))
- return MANUAL_NONE;
-
- return allow ? MANUAL_ALLOW : MANUAL_BLOCK;
-}
-
-void SupervisedUserService::GetManualExceptionsForHost(
- const std::string& host,
- std::vector<GURL>* urls) {
- const base::DictionaryValue* dict =
- profile_->GetPrefs()->GetDictionary(prefs::kSupervisedUserManualURLs);
- for (base::DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) {
- GURL url(it.key());
- if (url.host() == host)
- urls->push_back(url);
- }
-}
-
void SupervisedUserService::InitSync(const std::string& refresh_token) {
StartSetupSync();

Powered by Google App Engine
This is Rietveld 408576698