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

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

Issue 545413002: Detach the dependency from host_content_settings_map to extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ProviderType Created 6 years, 3 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_custom_extension_provider.cc
diff --git a/chrome/browser/content_settings/content_settings_custom_extension_provider.cc b/chrome/browser/content_settings/content_settings_custom_extension_provider.cc
index 1f2900a68fbe22f1641def778c695ad68deb93e0..fcbd0cb1c7923a55fc6ac27c6b2a2eba96207536 100644
--- a/chrome/browser/content_settings/content_settings_custom_extension_provider.cc
+++ b/chrome/browser/content_settings/content_settings_custom_extension_provider.cc
@@ -44,6 +44,14 @@ void CustomExtensionProvider::ShutdownOnUIThread() {
extensions_settings_->RemoveObserver(this);
}
+std::string CustomExtensionProvider::GetProviderName() const {
+ return "extension";
+}
+
+SettingSource CustomExtensionProvider::GetSettingSource() const {
+ return SETTING_SOURCE_EXTENSION;
+}
+
void CustomExtensionProvider::OnContentSettingChanged(
const std::string& extension_id,
bool incognito) {

Powered by Google App Engine
This is Rietveld 408576698