Index: chrome/browser/content_setting_combo_model.cc |
=================================================================== |
--- chrome/browser/content_setting_combo_model.cc (revision 66837) |
+++ chrome/browser/content_setting_combo_model.cc (working copy) |
@@ -36,7 +36,8 @@ |
} |
int ContentSettingComboModel::GetItemCount() { |
- if (content_type_ == CONTENT_SETTINGS_TYPE_PLUGINS) |
+ if (content_type_ == CONTENT_SETTINGS_TYPE_PLUGINS && |
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableClickToPlay)) |
return arraysize(kAskSettings); |
if (content_type_ == CONTENT_SETTINGS_TYPE_COOKIES) |
return arraysize(kSessionSettings); |
@@ -60,7 +61,8 @@ |
} |
ContentSetting ContentSettingComboModel::SettingForIndex(int index) { |
- if (content_type_ == CONTENT_SETTINGS_TYPE_PLUGINS) |
+ if (content_type_ == CONTENT_SETTINGS_TYPE_PLUGINS && |
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableClickToPlay)) |
return kAskSettings[index]; |
if (content_type_ == CONTENT_SETTINGS_TYPE_COOKIES) |
return kSessionSettings[index]; |