| 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.
|
| }
|
|
|