Index: chrome/browser/extensions/api/content_settings/content_settings_api.cc |
=================================================================== |
--- chrome/browser/extensions/api/content_settings/content_settings_api.cc (revision 176052) |
+++ chrome/browser/extensions/api/content_settings/content_settings_api.cc (working copy) |
@@ -62,7 +62,7 @@ |
namespace helpers = content_settings_helpers; |
namespace keys = content_settings_api_constants; |
-bool ContentSettingsClearFunction::RunImpl() { |
+bool ClearContentSettingsFunction::RunImpl() { |
ContentSettingsType content_type; |
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type)); |
@@ -96,7 +96,7 @@ |
return true; |
} |
-bool ContentSettingsGetFunction::RunImpl() { |
+bool GetContentSettingFunction::RunImpl() { |
ContentSettingsType content_type; |
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type)); |
@@ -169,7 +169,7 @@ |
return true; |
} |
-bool ContentSettingsSetFunction::RunImpl() { |
+bool SetContentSettingFunction::RunImpl() { |
ContentSettingsType content_type; |
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type)); |
@@ -250,7 +250,7 @@ |
return true; |
} |
-bool ContentSettingsGetResourceIdentifiersFunction::RunImpl() { |
+bool GetResourceIdentifiersFunction::RunImpl() { |
ContentSettingsType content_type; |
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type)); |
@@ -261,15 +261,14 @@ |
if (!g_testing_plugins_) { |
PluginService::GetInstance()->GetPlugins( |
- base::Bind(&ContentSettingsGetResourceIdentifiersFunction::OnGotPlugins, |
- this)); |
+ base::Bind(&GetResourceIdentifiersFunction::OnGotPlugins, this)); |
} else { |
OnGotPlugins(*g_testing_plugins_); |
} |
return true; |
} |
-void ContentSettingsGetResourceIdentifiersFunction::OnGotPlugins( |
+void GetResourceIdentifiersFunction::OnGotPlugins( |
const std::vector<webkit::WebPluginInfo>& plugins) { |
PluginFinder* finder = PluginFinder::GetInstance(); |
std::set<std::string> group_identifiers; |
@@ -290,13 +289,11 @@ |
SetResult(list); |
BrowserThread::PostTask( |
BrowserThread::UI, FROM_HERE, base::Bind( |
- &ContentSettingsGetResourceIdentifiersFunction::SendResponse, |
- this, |
- true)); |
+ &GetResourceIdentifiersFunction::SendResponse, this, true)); |
} |
// static |
-void ContentSettingsGetResourceIdentifiersFunction::SetPluginsForTesting( |
+void GetResourceIdentifiersFunction::SetPluginsForTesting( |
const std::vector<webkit::WebPluginInfo>* plugins) { |
g_testing_plugins_ = plugins; |
} |