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

Unified Diff: chrome/browser/extensions/chrome_extension_function.cc

Issue 2351823004: [Extensions] Consolidate ExtensionFunction::SendResponse()s (Closed)
Patch Set: lazyboy's Created 4 years, 3 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/chrome_extension_function.cc
diff --git a/chrome/browser/extensions/chrome_extension_function.cc b/chrome/browser/extensions/chrome_extension_function.cc
index 395a2b3dec5ddb1fed0a17eb5fc9fea7716d4cbd..9f87083da21b153b82f45b9272c5a60cf12cfd63 100644
--- a/chrome/browser/extensions/chrome_extension_function.cc
+++ b/chrome/browser/extensions/chrome_extension_function.cc
@@ -42,6 +42,10 @@ ChromeUIThreadExtensionFunction::GetAssociatedWebContents() {
return chrome_details_.GetAssociatedWebContents();
}
+void ChromeUIThreadExtensionFunction::SendResponse(bool success) {
+ Respond(success ? ArgumentList(std::move(results_)) : Error(error_));
+}
+
ChromeUIThreadExtensionFunction::~ChromeUIThreadExtensionFunction() {
}

Powered by Google App Engine
This is Rietveld 408576698