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

Side by Side Diff: chrome/browser/ui/webui/plugins_ui.cc

Issue 10391044: retry 136193 - convert localStrings to loadTimeData for options page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/options_ui2.cc ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698