| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // The type is stored as an |int|, but doing the switch on the right | 111 // The type is stored as an |int|, but doing the switch on the right |
| 112 // enumeration type gives us better build-time error checking (if someone adds | 112 // enumeration type gives us better build-time error checking (if someone adds |
| 113 // a new type). | 113 // a new type). |
| 114 switch (static_cast<WebPluginInfo::PluginType>(type)) { | 114 switch (static_cast<WebPluginInfo::PluginType>(type)) { |
| 115 case WebPluginInfo::PLUGIN_TYPE_NPAPI: | 115 case WebPluginInfo::PLUGIN_TYPE_NPAPI: |
| 116 return l10n_util::GetStringUTF16(IDS_PLUGINS_NPAPI); | 116 return l10n_util::GetStringUTF16(IDS_PLUGINS_NPAPI); |
| 117 case WebPluginInfo::PLUGIN_TYPE_PEPPER_IN_PROCESS: | 117 case WebPluginInfo::PLUGIN_TYPE_PEPPER_IN_PROCESS: |
| 118 return l10n_util::GetStringUTF16(IDS_PLUGINS_PPAPI_IN_PROCESS); | 118 return l10n_util::GetStringUTF16(IDS_PLUGINS_PPAPI_IN_PROCESS); |
| 119 case WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS: | 119 case WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS: |
| 120 return l10n_util::GetStringUTF16(IDS_PLUGINS_PPAPI_OUT_OF_PROCESS); | 120 return l10n_util::GetStringUTF16(IDS_PLUGINS_PPAPI_OUT_OF_PROCESS); |
| 121 case WebPluginInfo::PLUGIN_TYPE_PEPPER_UNSANDBOXED: | |
| 122 return l10n_util::GetStringUTF16(IDS_PLUGINS_PPAPI_UNSANDBOXED); | |
| 123 case WebPluginInfo::PLUGIN_TYPE_BROWSER_PLUGIN: | 121 case WebPluginInfo::PLUGIN_TYPE_BROWSER_PLUGIN: |
| 124 return l10n_util::GetStringUTF16(IDS_PLUGINS_BROWSER_PLUGIN); | 122 return l10n_util::GetStringUTF16(IDS_PLUGINS_BROWSER_PLUGIN); |
| 125 } | 123 } |
| 126 NOTREACHED(); | 124 NOTREACHED(); |
| 127 return base::string16(); | 125 return base::string16(); |
| 128 } | 126 } |
| 129 | 127 |
| 130 //////////////////////////////////////////////////////////////////////////////// | 128 //////////////////////////////////////////////////////////////////////////////// |
| 131 // | 129 // |
| 132 // PluginsDOMHandler | 130 // PluginsDOMHandler |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 void PluginsUI::RegisterProfilePrefs( | 522 void PluginsUI::RegisterProfilePrefs( |
| 525 user_prefs::PrefRegistrySyncable* registry) { | 523 user_prefs::PrefRegistrySyncable* registry) { |
| 526 registry->RegisterBooleanPref( | 524 registry->RegisterBooleanPref( |
| 527 prefs::kPluginsShowDetails, | 525 prefs::kPluginsShowDetails, |
| 528 false, | 526 false, |
| 529 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 527 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 530 registry->RegisterDictionaryPref( | 528 registry->RegisterDictionaryPref( |
| 531 prefs::kContentSettingsPluginWhitelist, | 529 prefs::kContentSettingsPluginWhitelist, |
| 532 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 530 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 533 } | 531 } |
| OLD | NEW |