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

Unified Diff: components/content_settings/core/browser/content_settings_registry.h

Issue 1991623005: Only Register() platform specific content settings types on different platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split the changes and register images, plugins, mouselock in this CL Created 4 years, 6 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: components/content_settings/core/browser/content_settings_registry.h
diff --git a/components/content_settings/core/browser/content_settings_registry.h b/components/content_settings/core/browser/content_settings_registry.h
index b26ca399f54ace80d62e068f1b8480773ef58a7b..84b4b514bf402d2bccc238bafd5acaf5ebf8bb58 100644
--- a/components/content_settings/core/browser/content_settings_registry.h
+++ b/components/content_settings/core/browser/content_settings_registry.h
@@ -54,6 +54,8 @@ class ContentSettingsRegistry {
void Init();
+ typedef uint32_t Platforms;
+
// Register a new content setting. This maps an origin to an ALLOW/ASK/BLOCK
// value (see the ContentSetting enum).
void Register(ContentSettingsType type,
@@ -63,6 +65,7 @@ class ContentSettingsRegistry {
const std::vector<std::string>& whitelisted_schemes,
const std::set<ContentSetting>& valid_settings,
WebsiteSettingsInfo::ScopingType scoping_type,
+ Platforms platforms,
ContentSettingsInfo::IncognitoBehavior incognito_behavior);
Map content_settings_info_;

Powered by Google App Engine
This is Rietveld 408576698