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

Unified Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 6875001: Hide Flash storage settings link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 8 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: chrome/browser/ui/webui/options/content_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
index 6bbab5587dfc78a1bf61ecd0a70357d7c583dac9..53d27f7060fefb3931dcc7de6024647b2427c267 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -208,6 +208,8 @@ void ContentSettingsHandler::GetLocalizedValues(
{ "cookies_ask", IDS_COOKIES_ASK_EVERY_TIME_RADIO },
{ "cookies_block", IDS_COOKIES_BLOCK_RADIO },
{ "cookies_block_3rd_party", IDS_COOKIES_BLOCK_3RDPARTY_CHKBOX },
+ { "cookies_clear_when_close", IDS_COOKIES_CLEAR_WHEN_CLOSE_CHKBOX },
+ { "cookies_lso_clear_when_close", IDS_COOKIES_LSO_CLEAR_WHEN_CLOSE_CHKBOX },
{ "cookies_show_cookies", IDS_COOKIES_SHOW_COOKIES_BUTTON },
{ "flash_storage_settings", IDS_FLASH_STORAGE_SETTINGS },
{ "flash_storage_url", IDS_FLASH_STORAGE_URL },
@@ -262,11 +264,6 @@ void ContentSettingsHandler::Initialize() {
web_ui_->CallJavascriptFunction("ContentSettings.setBlockThirdPartyCookies",
*block_3rd_party.get());
- clear_plugin_lso_data_enabled_.Init(prefs::kClearPluginLSODataEnabled,
- g_browser_process->local_state(),
- this);
- UpdateClearPluginLSOData();
-
notification_registrar_.Add(
this, NotificationType::OTR_PROFILE_CREATED,
NotificationService::AllSources());
@@ -327,8 +324,6 @@ void ContentSettingsHandler::Observe(NotificationType type,
UpdateSettingDefaultFromModel(CONTENT_SETTINGS_TYPE_GEOLOCATION);
else if (pref_name == prefs::kGeolocationContentSettings)
UpdateGeolocationExceptionsView();
- else if (pref_name == prefs::kClearPluginLSODataEnabled)
- UpdateClearPluginLSOData();
break;
}
@@ -347,16 +342,6 @@ void ContentSettingsHandler::Observe(NotificationType type,
}
}
-void ContentSettingsHandler::UpdateClearPluginLSOData() {
- int label_id = clear_plugin_lso_data_enabled_.GetValue() ?
- IDS_COOKIES_LSO_CLEAR_WHEN_CLOSE_CHKBOX :
- IDS_COOKIES_CLEAR_WHEN_CLOSE_CHKBOX;
- scoped_ptr<Value> label(
- Value::CreateStringValue(l10n_util::GetStringUTF16(label_id)));
- web_ui_->CallJavascriptFunction(
- "ContentSettings.setClearLocalDataOnShutdownLabel", *label);
-}
-
void ContentSettingsHandler::UpdateSettingDefaultFromModel(
ContentSettingsType type) {
DictionaryValue filter_settings;
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.h ('k') | chrome/browser/ui/webui/options/core_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698