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

Unified Diff: components/content_settings/core/common/content_settings.cc

Issue 2791623004: [sensors][permission] Add new permission types in permission module. (Closed)
Patch Set: Use 1 single permissionName SENSORS, add ContentSettings Created 3 years, 5 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/common/content_settings.cc
diff --git a/components/content_settings/core/common/content_settings.cc b/components/content_settings/core/common/content_settings.cc
index 4b32cb96c3e4fb38a03586b5234c1a3c902d8fea..fc31df90be593f447ebbcfba94a7a031ebbc0f2b 100644
--- a/components/content_settings/core/common/content_settings.cc
+++ b/components/content_settings/core/common/content_settings.cc
@@ -28,7 +28,7 @@ struct HistogramValue {
// content settings type name instead.
//
// The array size must be explicit for the static_asserts below.
-constexpr size_t kNumHistogramValues = 30;
+constexpr size_t kNumHistogramValues = 31;
constexpr HistogramValue kHistogramValue[kNumHistogramValues] = {
{CONTENT_SETTINGS_TYPE_COOKIES, 0},
{CONTENT_SETTINGS_TYPE_IMAGES, 1},
@@ -60,6 +60,7 @@ constexpr HistogramValue kHistogramValue[kNumHistogramValues] = {
{CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, 34},
{CONTENT_SETTINGS_TYPE_MEDIA_ENGAGEMENT, 35},
{CONTENT_SETTINGS_TYPE_SOUND, 36},
+ {CONTENT_SETTINGS_TYPE_SENSORS, 37},
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698