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

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

Issue 10694106: Added support for multiple parameters to Extension API callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Indentation fixes and comment. Created 8 years, 5 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/extension_record_api.cc
diff --git a/chrome/browser/extensions/extension_record_api.cc b/chrome/browser/extensions/extension_record_api.cc
index 6c6580df68e383ad409d3ddc91a6150cba2dc671..15b1d1d4fe8578aa4e1ae3a2a3c462d61a1e12a3 100644
--- a/chrome/browser/extensions/extension_record_api.cc
+++ b/chrome/browser/extensions/extension_record_api.cc
@@ -51,7 +51,7 @@ bool RunPageCyclerFunction::RunImpl() {
// parameter parsing) then return a list of such errors, else perform
// RunTestBrowser on the BlockingPool.
if (!errors_.empty()) {
- result_.reset(record::CaptureURLs::Result::Create(errors_));
+ SetSingleResult(record::CaptureURLs::Result::Create(errors_));
SendResponse(true);
} else {
content::BrowserThread::PostBlockingPoolTask(FROM_HERE,
@@ -178,7 +178,7 @@ void CaptureURLsFunction::AddSwitches(CommandLine* line) {
}
void CaptureURLsFunction::Finish() {
- result_.reset(record::CaptureURLs::Result::Create(errors_));
+ SetSingleResult(record::CaptureURLs::Result::Create(errors_));
SendResponse(true);
}
@@ -245,7 +245,7 @@ void ReplayURLsFunction::Finish() {
result.stats = stats_;
result.errors = errors_;
- result_.reset(record::ReplayURLs::Result::Create(result));
+ SetSingleResult(record::ReplayURLs::Result::Create(result));
SendResponse(true);
}

Powered by Google App Engine
This is Rietveld 408576698