Commit c985ba11 authored by raymes's avatar raymes Committed by Commit Bot

Remove DO_NOT_USE from CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE

We were originally planning to make content settings type a string, but
that effort was never completed. This comment is just adding confusion
at the moment.

Review-Url: https://codereview.chromium.org/2965183002
Cr-Commit-Position: refs/heads/master@{#485432}
parent d0591a30
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include "components/content_settings/core/common/content_settings_types.h" #include "components/content_settings/core/common/content_settings_types.h"
#include "ipc/ipc_message_macros.h" #include "ipc/ipc_message_macros.h"
IPC_ENUM_TRAITS_MAX_VALUE(ContentSettingsType, IPC_ENUM_TRAITS_MAX_VALUE(ContentSettingsType, CONTENT_SETTINGS_NUM_TYPES - 1)
CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE - 1)
#endif // CHROME_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
...@@ -80,7 +80,7 @@ int ContentSettingTypeToHistogramValue(ContentSettingsType content_setting, ...@@ -80,7 +80,7 @@ int ContentSettingTypeToHistogramValue(ContentSettingsType content_setting,
return a.type < b.type; return a.type < b.type;
})); }));
static_assert(kHistogramValue[kNumHistogramValues - 1].type == static_assert(kHistogramValue[kNumHistogramValues - 1].type ==
CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE - 1, CONTENT_SETTINGS_NUM_TYPES - 1,
"Update content settings histogram lookup"); "Update content settings histogram lookup");
const HistogramValue* found = std::lower_bound( const HistogramValue* found = std::lower_bound(
......
...@@ -71,8 +71,7 @@ enum ContentSettingsType { ...@@ -71,8 +71,7 @@ enum ContentSettingsType {
// specific origin. // specific origin.
CONTENT_SETTINGS_TYPE_MEDIA_ENGAGEMENT, CONTENT_SETTINGS_TYPE_MEDIA_ENGAGEMENT,
// WARNING: This enum is going to be removed soon. Do not depend on NUM_TYPES. CONTENT_SETTINGS_NUM_TYPES,
CONTENT_SETTINGS_NUM_TYPES_DO_NOT_USE,
}; };
struct ContentSettingsTypeHash { struct ContentSettingsTypeHash {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment