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

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: removed usage of SigninManager 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 80cc1c8dec7d3d85e072ea31a75869b0c50d5fba..598195e030e0b215292344f33779a49d79b86b75 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());

Powered by Google App Engine
This is Rietveld 408576698