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

Unified Diff: extensions/browser/extension_function_dispatcher.cc

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix test Created 6 years, 8 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: extensions/browser/extension_function_dispatcher.cc
diff --git a/extensions/browser/extension_function_dispatcher.cc b/extensions/browser/extension_function_dispatcher.cc
index dd5f30a8f436c11ca87165b68fa10a1f0887acb9..fb3b50d66b28fedf401c357d85df84a44ec02079 100644
--- a/extensions/browser/extension_function_dispatcher.cc
+++ b/extensions/browser/extension_function_dispatcher.cc
@@ -274,7 +274,7 @@ void ExtensionFunctionDispatcher::DispatchOnIOThread(
static_cast<content::BrowserContext*>(profile_id));
UMA_HISTOGRAM_SPARSE_SLOWLY("Extensions.FunctionCalls",
function->histogram_value());
- function->Run();
+ function->Run()->Execute();
not at google - send to devlin 2014/04/30 15:25:46 I also find this a bit weird. At least Run() can h
Ken Rockot(use gerrit already) 2014/04/30 23:38:08 Of all the suggested verbs, I like "Send" the best
not at google - send to devlin 2014/04/30 23:54:39 No rush :)
} else {
function->OnQuotaExceeded(violation_error);
}
@@ -382,7 +382,7 @@ void ExtensionFunctionDispatcher::DispatchWithCallbackInternal(
extension->id(), params.name, args.Pass(), browser_context_);
UMA_HISTOGRAM_SPARSE_SLOWLY("Extensions.FunctionCalls",
function->histogram_value());
- function->Run();
+ function->Run()->Execute();
} else {
function->OnQuotaExceeded(violation_error);
}

Powered by Google App Engine
This is Rietveld 408576698