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

Unified Diff: chrome/browser/extensions/api/identity/identity_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: Synced. 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/api/identity/identity_api.cc
diff --git a/chrome/browser/extensions/api/identity/identity_api.cc b/chrome/browser/extensions/api/identity/identity_api.cc
index 4333d3441d47617026dfdd2f4771ecbaf6907211..4536d76ab6e258c576e883c9a64feb4eac4586f4 100644
--- a/chrome/browser/extensions/api/identity/identity_api.cc
+++ b/chrome/browser/extensions/api/identity/identity_api.cc
@@ -52,7 +52,7 @@ bool GetAuthTokenFunction::RunImpl() {
}
void GetAuthTokenFunction::OnMintTokenSuccess(const std::string& access_token) {
- result_.reset(Value::CreateStringValue(access_token));
+ SetResult(Value::CreateStringValue(access_token));
SendResponse(true);
Release(); // Balanced in RunImpl.
}
@@ -147,7 +147,7 @@ bool LaunchWebAuthFlowFunction::RunImpl() {
void LaunchWebAuthFlowFunction::OnAuthFlowSuccess(
const std::string& redirect_url) {
- result_.reset(Value::CreateStringValue(redirect_url));
+ SetResult(Value::CreateStringValue(redirect_url));
SendResponse(true);
Release(); // Balanced in RunImpl.
}

Powered by Google App Engine
This is Rietveld 408576698