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

Unified Diff: chrome/browser/content_settings/content_settings_policy_provider.cc

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed the clients Created 6 years, 4 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/content_settings/content_settings_policy_provider.cc
diff --git a/chrome/browser/content_settings/content_settings_policy_provider.cc b/chrome/browser/content_settings/content_settings_policy_provider.cc
index f41669e5cc00644e4b4b0e23dbfbc9255948c12f..5917ef685f52106eba160426c6e512adaa10a62a 100644
--- a/chrome/browser/content_settings/content_settings_policy_provider.cc
+++ b/chrome/browser/content_settings/content_settings_policy_provider.cc
@@ -19,6 +19,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
+#include "extensions/common/constants.h"
using content::BrowserThread;
@@ -365,12 +366,13 @@ void PolicyProvider::GetAutoSelectCertificateSettingsFromPreferences(
continue;
}
- ContentSettingsPattern pattern =
- ContentSettingsPattern::FromString(pattern_str);
+ ContentSettingsPattern pattern = ContentSettingsPattern::FromString(
+ extensions::kExtensionScheme, pattern_str);
// Ignore invalid patterns.
if (!pattern.IsValid()) {
VLOG(1) << "Ignoring invalid certificate auto select setting:"
- " Invalid content settings pattern: " << pattern;
+ << " Invalid content settings pattern: "
+ << pattern.ToString(extensions::kExtensionScheme);
continue;
}

Powered by Google App Engine
This is Rietveld 408576698