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

Unified Diff: chrome/browser/extensions/system/system_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/system/system_api.cc
diff --git a/chrome/browser/extensions/system/system_api.cc b/chrome/browser/extensions/system/system_api.cc
index 042eb3566775c28b4d083a956b1e1b9de96c65f8..84ae3b400ba09a84baf670a4ffaa46a7090adf11 100644
--- a/chrome/browser/extensions/system/system_api.cc
+++ b/chrome/browser/extensions/system/system_api.cc
@@ -73,7 +73,7 @@ bool GetIncognitoModeAvailabilityFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(
value >= 0 &&
value < static_cast<int>(arraysize(kIncognitoModeAvailabilityStrings)));
- result_.reset(
+ SetSingleResult(
Value::CreateStringValue(kIncognitoModeAvailabilityStrings[value]));
return true;
}
@@ -134,7 +134,7 @@ bool GetUpdateStatusFunction::RunImpl() {
DictionaryValue* dict = new DictionaryValue();
dict->SetString(kStateKey, state);
dict->SetDouble(kDownloadProgressKey, download_progress);
- result_.reset(dict);
+ SetSingleResult(dict);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698