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

Unified Diff: chrome/browser/extensions/api/content_settings/content_settings_api.cc

Issue 12330089: JSON compiler to include "customBindings" in the function name. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
Index: chrome/browser/extensions/api/content_settings/content_settings_api.cc
===================================================================
--- chrome/browser/extensions/api/content_settings/content_settings_api.cc (revision 182503)
+++ 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 ContentSettingsContentSettingClearFunction::RunImpl() {
ContentSettingsType content_type;
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type));
@@ -96,7 +96,7 @@
return true;
}
-bool ContentSettingsGetFunction::RunImpl() {
+bool ContentSettingsContentSettingGetFunction::RunImpl() {
ContentSettingsType content_type;
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type));
@@ -169,7 +169,7 @@
return true;
}
-bool ContentSettingsSetFunction::RunImpl() {
+bool ContentSettingsContentSettingSetFunction::RunImpl() {
ContentSettingsType content_type;
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type));
@@ -250,7 +250,7 @@
return true;
}
-bool ContentSettingsGetResourceIdentifiersFunction::RunImpl() {
+bool ContentSettingsContentSettingGetResourceIdentifiersFunction::RunImpl() {
ContentSettingsType content_type;
EXTENSION_FUNCTION_VALIDATE(RemoveContentType(args_.get(), &content_type));
@@ -261,7 +261,8 @@
if (!g_testing_plugins_) {
PluginService::GetInstance()->GetPlugins(
- base::Bind(&ContentSettingsGetResourceIdentifiersFunction::OnGotPlugins,
+ base::Bind(&ContentSettingsContentSettingGetResourceIdentifiersFunction::
+ OnGotPlugins,
this));
} else {
OnGotPlugins(*g_testing_plugins_);
@@ -269,7 +270,7 @@
return true;
}
-void ContentSettingsGetResourceIdentifiersFunction::OnGotPlugins(
+void ContentSettingsContentSettingGetResourceIdentifiersFunction::OnGotPlugins(
const std::vector<webkit::WebPluginInfo>& plugins) {
PluginFinder* finder = PluginFinder::GetInstance();
std::set<std::string> group_identifiers;
@@ -290,14 +291,15 @@
SetResult(list);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE, base::Bind(
- &ContentSettingsGetResourceIdentifiersFunction::SendResponse,
+ &ContentSettingsContentSettingGetResourceIdentifiersFunction::
+ SendResponse,
this,
true));
}
// static
-void ContentSettingsGetResourceIdentifiersFunction::SetPluginsForTesting(
- const std::vector<webkit::WebPluginInfo>* plugins) {
+void ContentSettingsContentSettingGetResourceIdentifiersFunction::
+ SetPluginsForTesting(const std::vector<webkit::WebPluginInfo>* plugins) {
g_testing_plugins_ = plugins;
}

Powered by Google App Engine
This is Rietveld 408576698