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

Unified Diff: components/content_settings/core/browser/content_settings_utils.cc

Issue 1156983002: Remove unused "Website Settings" view of content settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/content_settings/core/browser/content_settings_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/content_settings/core/browser/content_settings_utils.cc
diff --git a/components/content_settings/core/browser/content_settings_utils.cc b/components/content_settings/core/browser/content_settings_utils.cc
index 2c774fb420fdfc9140f6453ccae4a16dcb09c197..a51f917f32d8718f31c822af55903700b2e722f2 100644
--- a/components/content_settings/core/browser/content_settings_utils.cc
+++ b/components/content_settings/core/browser/content_settings_utils.cc
@@ -62,17 +62,6 @@ std::string GetTypeName(ContentSettingsType type) {
return std::string(kTypeNames[type]);
}
-bool GetTypeFromName(const std::string& name,
- ContentSettingsType* return_setting) {
- for (size_t type = 0; type < CONTENT_SETTINGS_NUM_TYPES; ++type) {
- if (name.compare(kTypeNames[type]) == 0) {
- *return_setting = static_cast<ContentSettingsType>(type);
- return true;
- }
- }
- return false;
-}
-
std::string ContentSettingToString(ContentSetting setting) {
switch (setting) {
case CONTENT_SETTING_ALLOW:
« no previous file with comments | « components/content_settings/core/browser/content_settings_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698