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

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

Issue 796543002: Plugin Power Saver: Implement option in Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore 'ask' to list of allowed settings for policy settings Created 6 years 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/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 8dbf51d08425d2edb2d58a255cb4d5c051bc058b..ed344067d073dc220fcc9eb6a50c7d58967e6b56 100644
--- a/components/content_settings/core/browser/content_settings_utils.cc
+++ b/components/content_settings/core/browser/content_settings_utils.cc
@@ -85,6 +85,8 @@ std::string ContentSettingToString(ContentSetting setting) {
return "block";
case CONTENT_SETTING_SESSION_ONLY:
return "session";
+ case CONTENT_SETTING_DETECT_IMPORTANT_CONTENT:
+ return "detect";
case CONTENT_SETTING_DEFAULT:
return "default";
case CONTENT_SETTING_NUM_SETTINGS:
@@ -103,6 +105,8 @@ ContentSetting ContentSettingFromString(const std::string& name) {
return CONTENT_SETTING_BLOCK;
if (name == "session")
return CONTENT_SETTING_SESSION_ONLY;
+ if (name == "detect")
+ return CONTENT_SETTING_DETECT_IMPORTANT_CONTENT;
NOTREACHED() << name << " is not a recognized content setting.";
return CONTENT_SETTING_DEFAULT;

Powered by Google App Engine
This is Rietveld 408576698