Surfacing whitelist entry points in NTP.
Initial version of surfacing whitelist entry points on the NTP. The supervised user service provides the list of whitelists and from there we add the suggestions. We are not yet filtering for repeating entries (next CL).
BUG=586097
Review URL: https://codereview.chromium.org/1690903002
Cr-Commit-Position: refs/heads/master@{#377919}
diff --git a/chrome/browser/supervised_user/supervised_user_service.h b/chrome/browser/supervised_user/supervised_user_service.h
index 0c5a907..7c62586 100644
--- a/chrome/browser/supervised_user/supervised_user_service.h
+++ b/chrome/browser/supervised_user/supervised_user_service.h
@@ -109,6 +109,10 @@
// Returns the whitelist service.
SupervisedUserWhitelistService* GetWhitelistService();
+ const std::vector<scoped_refptr<SupervisedUserSiteList>>& whitelists() const {
+ return whitelists_;
+ }
+
// Whether the user can request to get access to blocked URLs or to new
// extensions.
bool AccessRequestsEnabled();
@@ -389,6 +393,8 @@
scoped_ptr<SupervisedUserWhitelistService> whitelist_service_;
+ std::vector<scoped_refptr<SupervisedUserSiteList>> whitelists_;
+
// Used to create permission requests.
ScopedVector<PermissionRequestCreator> permissions_creators_;