| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/plugins_ui.h" | 5 #include "chrome/browser/ui/webui/plugins_ui.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 using content::WebContents; | 62 using content::WebContents; |
| 63 using content::WebUIMessageHandler; | 63 using content::WebUIMessageHandler; |
| 64 using webkit::npapi::PluginGroup; | 64 using webkit::npapi::PluginGroup; |
| 65 using webkit::WebPluginInfo; | 65 using webkit::WebPluginInfo; |
| 66 | 66 |
| 67 namespace { | 67 namespace { |
| 68 | 68 |
| 69 ChromeWebUIDataSource* CreatePluginsUIHTMLSource() { | 69 ChromeWebUIDataSource* CreatePluginsUIHTMLSource() { |
| 70 ChromeWebUIDataSource* source = | 70 ChromeWebUIDataSource* source = |
| 71 new ChromeWebUIDataSource(chrome::kChromeUIPluginsHost); | 71 new ChromeWebUIDataSource(chrome::kChromeUIPluginsHost); |
| 72 source->set_use_json_js_format_v2(); |
| 72 | 73 |
| 73 source->AddLocalizedString("pluginsTitle", IDS_PLUGINS_TITLE); | 74 source->AddLocalizedString("pluginsTitle", IDS_PLUGINS_TITLE); |
| 74 source->AddLocalizedString("pluginsDetailsModeLink", | 75 source->AddLocalizedString("pluginsDetailsModeLink", |
| 75 IDS_PLUGINS_DETAILS_MODE_LINK); | 76 IDS_PLUGINS_DETAILS_MODE_LINK); |
| 76 source->AddLocalizedString("pluginsNoneInstalled", | 77 source->AddLocalizedString("pluginsNoneInstalled", |
| 77 IDS_PLUGINS_NONE_INSTALLED); | 78 IDS_PLUGINS_NONE_INSTALLED); |
| 78 source->AddLocalizedString("pluginDisabled", IDS_PLUGINS_DISABLED_PLUGIN); | 79 source->AddLocalizedString("pluginDisabled", IDS_PLUGINS_DISABLED_PLUGIN); |
| 79 source->AddLocalizedString("pluginDisabledByPolicy", | 80 source->AddLocalizedString("pluginDisabledByPolicy", |
| 80 IDS_PLUGINS_DISABLED_BY_POLICY_PLUGIN); | 81 IDS_PLUGINS_DISABLED_BY_POLICY_PLUGIN); |
| 81 source->AddLocalizedString("pluginEnabledByPolicy", | 82 source->AddLocalizedString("pluginEnabledByPolicy", |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 void PluginsUI::RegisterUserPrefs(PrefService* prefs) { | 490 void PluginsUI::RegisterUserPrefs(PrefService* prefs) { |
| 490 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, | 491 prefs->RegisterBooleanPref(prefs::kPluginsShowDetails, |
| 491 false, | 492 false, |
| 492 PrefService::UNSYNCABLE_PREF); | 493 PrefService::UNSYNCABLE_PREF); |
| 493 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, | 494 prefs->RegisterBooleanPref(prefs::kPluginsShowSetReaderDefaultInfobar, |
| 494 true, | 495 true, |
| 495 PrefService::UNSYNCABLE_PREF); | 496 PrefService::UNSYNCABLE_PREF); |
| 496 prefs->RegisterDictionaryPref(prefs::kContentSettingsPluginWhitelist, | 497 prefs->RegisterDictionaryPref(prefs::kContentSettingsPluginWhitelist, |
| 497 PrefService::SYNCABLE_PREF); | 498 PrefService::SYNCABLE_PREF); |
| 498 } | 499 } |
| OLD | NEW |