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

Unified Diff: components/content_settings/core/browser/website_settings_info.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: format Created 4 years, 7 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/website_settings_info.h
diff --git a/components/content_settings/core/browser/website_settings_info.h b/components/content_settings/core/browser/website_settings_info.h
index 762e32e828c4e52f58a802817d527fdb920a9297..fac4d99edc59817316d2bd5056995135b70d107d 100644
--- a/components/content_settings/core/browser/website_settings_info.h
+++ b/components/content_settings/core/browser/website_settings_info.h
@@ -50,6 +50,21 @@ class WebsiteSettingsInfo {
DONT_INHERIT_IN_INCOGNITO,
};
+ enum AppliedPlatform {
raymes 2016/05/20 19:10:16 nit: Maybe just Platform? I wonder if we should m
lshang 2016/05/24 11:55:45 Done.
+ // Settings applied to all platforms, including win, mac, linux, chromeos,
+ // android, ios.
+ ALL_PLATFORMS,
+
+ // Settings only applied to win, mac, linux and chromeos.
+ DESKTOP_ONLY,
+
+ // Settings applied to win, mac, linux, chromeos and android, but not ios.
+ DESKTOP_AND_ANDROID_ONLY,
+
+ // Settings only applied to android and chromeos.
+ ANDROID_AND_CHROMEOS_ONLY
+ };
+
WebsiteSettingsInfo(ContentSettingsType type,
const std::string& name,
std::unique_ptr<base::Value> initial_default_value,

Powered by Google App Engine
This is Rietveld 408576698