| Index: chrome/browser/ui/webui/site_settings_helper.cc
|
| diff --git a/chrome/browser/ui/webui/site_settings_helper.cc b/chrome/browser/ui/webui/site_settings_helper.cc
|
| index 5c8ef31845f589a35a61850b400e537a70d3d832..37373cb65116aa1f35d48fcfa8163560f6657aa2 100644
|
| --- a/chrome/browser/ui/webui/site_settings_helper.cc
|
| +++ b/chrome/browser/ui/webui/site_settings_helper.cc
|
| @@ -51,6 +51,14 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = {
|
| {CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, "background-sync"},
|
| };
|
|
|
| +bool HasRegisteredGroupName(ContentSettingsType type) {
|
| + for (size_t i = 0; i < arraysize(kContentSettingsTypeGroupNames); ++i) {
|
| + if (type == kContentSettingsTypeGroupNames[i].type)
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| ContentSettingsType ContentSettingsTypeFromGroupName(const std::string& name) {
|
| for (size_t i = 0; i < arraysize(kContentSettingsTypeGroupNames); ++i) {
|
| if (name == kContentSettingsTypeGroupNames[i].name)
|
| @@ -67,7 +75,7 @@ std::string ContentSettingsTypeToGroupName(ContentSettingsType type) {
|
| return kContentSettingsTypeGroupNames[i].name;
|
| }
|
|
|
| - NOTREACHED();
|
| + NOTREACHED() << type << " is not a recognized content settings type.";
|
| return std::string();
|
| }
|
|
|
|
|