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

Side by Side Diff: chrome/browser/supervised_user/experimental/supervised_user_filtering_switches.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/supervised_user/experimental/supervised_user_filtering_ switches.h" 5 #include "chrome/browser/supervised_user/experimental/supervised_user_filtering_ switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
12 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "components/prefs/pref_service.h"
13 13
14 namespace { 14 namespace {
15 15
16 enum class SafeSitesState { 16 enum class SafeSitesState {
17 ENABLED, 17 ENABLED,
18 DISABLED, 18 DISABLED,
19 BLACKLIST_ONLY, 19 BLACKLIST_ONLY,
20 ONLINE_CHECK_ONLY 20 ONLINE_CHECK_ONLY
21 }; 21 };
22 22
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 state == SafeSitesState::BLACKLIST_ONLY; 74 state == SafeSitesState::BLACKLIST_ONLY;
75 } 75 }
76 76
77 bool IsSafeSitesOnlineCheckEnabled(const Profile* profile) { 77 bool IsSafeSitesOnlineCheckEnabled(const Profile* profile) {
78 SafeSitesState state = GetState(profile); 78 SafeSitesState state = GetState(profile);
79 return state == SafeSitesState::ENABLED || 79 return state == SafeSitesState::ENABLED ||
80 state == SafeSitesState::ONLINE_CHECK_ONLY; 80 state == SafeSitesState::ONLINE_CHECK_ONLY;
81 } 81 }
82 82
83 } // namespace supervised_users 83 } // namespace supervised_users
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698