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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 110643005: Refactored the URLBlacklistManager to avoid chrome/ and content/ dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index fbc3f7c0993c18d8d6f977b23e5b26ec12eb8e82..b51099dc39a2e6c69812d89df4f2e59f2377c7bb 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -85,6 +85,7 @@
#include "components/policy/core/common/external_data_fetcher.h"
#include "components/policy/core/common/mock_configuration_policy_provider.h"
#include "components/policy/core/common/policy_map.h"
+#include "components/policy/core/common/policy_pref_names.h"
#include "components/policy/core/common/policy_service.h"
#include "components/policy/core/common/policy_service_impl.h"
#include "content/public/browser/browser_child_process_host_iterator.h"
@@ -1999,7 +2000,7 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, FileURLBlacklist) {
FlushBlacklistPolicy();
PrefService* prefs = browser()->profile()->GetPrefs();
- const base::ListValue* list_url = prefs->GetList(prefs::kUrlBlacklist);
+ const base::ListValue* list_url = prefs->GetList(policy_prefs::kUrlBlacklist);
EXPECT_EQ(list_url->Find(base::StringValue("file://*")),
list_url->end());
@@ -2010,7 +2011,7 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, FileURLBlacklist) {
UpdateProviderPolicy(policies);
FlushBlacklistPolicy();
- list_url = prefs->GetList(prefs::kUrlBlacklist);
+ list_url = prefs->GetList(policy_prefs::kUrlBlacklist);
EXPECT_NE(list_url->Find(base::StringValue("file://*")),
list_url->end());
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_list_factory.cc ('k') | chrome/browser/policy/policy_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698