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

Unified Diff: chrome/browser/plugins/plugin_prefs.cc

Issue 1007443004: Plugin Power Saver: Replace all "plug-in" with "plugin" for consistency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove terms and native_client_sdk changes. Created 5 years, 9 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
« no previous file with comments | « chrome/browser/plugins/plugin_prefs.h ('k') | chrome/browser/plugins/plugin_status_pref_setter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_prefs.cc
diff --git a/chrome/browser/plugins/plugin_prefs.cc b/chrome/browser/plugins/plugin_prefs.cc
index 1dd8d77dabf443a9ce86bac59b2cd84c822a3d34..97dcf993ea7efe82fd659b7221d5a93f9726edfd 100644
--- a/chrome/browser/plugins/plugin_prefs.cc
+++ b/chrome/browser/plugins/plugin_prefs.cc
@@ -121,7 +121,7 @@ void PluginPrefs::EnablePluginGroupInternal(
// Set the desired state for the group.
plugin_group_state_[group_name] = enabled;
- // Update the state for all plug-ins in the group.
+ // Update the state for all plugins in the group.
for (size_t i = 0; i < plugins.size(); ++i) {
scoped_ptr<PluginMetadata> plugin(finder->GetPluginMetadata(plugins[i]));
if (group_name != plugin->name())
@@ -175,7 +175,7 @@ void PluginPrefs::EnablePluginInternal(
const base::Callback<void(bool)>& callback,
const std::vector<content::WebPluginInfo>& plugins) {
{
- // Set the desired state for the plug-in.
+ // Set the desired state for the plugin.
base::AutoLock auto_lock(lock_);
plugin_state_.Set(path, enabled);
}
@@ -185,7 +185,7 @@ void PluginPrefs::EnablePluginInternal(
if (plugins[i].path == path) {
scoped_ptr<PluginMetadata> plugin_metadata(
plugin_finder->GetPluginMetadata(plugins[i]));
- // set the group name for this plug-in.
+ // set the group name for this plugin.
group_name = plugin_metadata->name();
DCHECK_EQ(enabled, IsPluginEnabled(plugins[i]));
break;
@@ -203,7 +203,7 @@ void PluginPrefs::EnablePluginInternal(
}
if (!group_name.empty()) {
- // Update the state for the corresponding plug-in group.
+ // Update the state for the corresponding plugin group.
base::AutoLock auto_lock(lock_);
plugin_group_state_[group_name] = !all_disabled;
}
@@ -234,13 +234,13 @@ bool PluginPrefs::IsPluginEnabled(const content::WebPluginInfo& plugin) const {
PluginFinder::GetInstance()->GetPluginMetadata(plugin));
base::string16 group_name = plugin_metadata->name();
- // Check if the plug-in or its group is enabled by policy.
+ // Check if the plugin or its group is enabled by policy.
PolicyStatus plugin_status = PolicyStatusForPlugin(plugin.name);
PolicyStatus group_status = PolicyStatusForPlugin(group_name);
if (plugin_status == POLICY_ENABLED || group_status == POLICY_ENABLED)
return true;
- // Check if the plug-in or its group is disabled by policy.
+ // Check if the plugin or its group is disabled by policy.
if (plugin_status == POLICY_DISABLED || group_status == POLICY_DISABLED)
return false;
@@ -257,12 +257,12 @@ bool PluginPrefs::IsPluginEnabled(const content::WebPluginInfo& plugin) const {
#endif
base::AutoLock auto_lock(lock_);
- // Check user preferences for the plug-in.
+ // Check user preferences for the plugin.
bool plugin_enabled = false;
if (plugin_state_.Get(plugin.path, &plugin_enabled))
return plugin_enabled;
- // Check user preferences for the plug-in group.
+ // Check user preferences for the plugin group.
std::map<base::string16, bool>::const_iterator group_it(
plugin_group_state_.find(group_name));
if (group_it != plugin_group_state_.end())
@@ -563,7 +563,7 @@ void PluginPrefs::OnUpdatePreferences(
group_names.insert(plugin_metadata->name());
}
- // Add the plug-in groups.
+ // Add the plugin groups.
for (std::set<base::string16>::const_iterator it = group_names.begin();
it != group_names.end(); ++it) {
base::DictionaryValue* summary = new base::DictionaryValue();
« no previous file with comments | « chrome/browser/plugins/plugin_prefs.h ('k') | chrome/browser/plugins/plugin_status_pref_setter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698