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 6a8beb77c71325f3902a9abe0bd2f5eda203603e..128fb6ed190b141be5030cd28621168fd23b13e3 100644 |
--- a/chrome/browser/extensions/api/identity/identity_api.cc |
+++ b/chrome/browser/extensions/api/identity/identity_api.cc |
@@ -129,7 +129,7 @@ bool IdentityGetAuthTokenFunction::RunImpl() { |
void IdentityGetAuthTokenFunction::CompleteFunctionWithResult( |
const std::string& access_token) { |
- SetResult(Value::CreateStringValue(access_token)); |
+ SetResult(new base::StringValue(access_token)); |
SendResponse(true); |
Release(); // Balanced in RunImpl. |
} |
@@ -599,7 +599,7 @@ void IdentityLaunchWebAuthFlowFunction::OnAuthFlowFailure( |
void IdentityLaunchWebAuthFlowFunction::OnAuthFlowURLChange( |
const GURL& redirect_url) { |
if (redirect_url.GetWithEmptyPath() == final_url_prefix_) { |
- SetResult(Value::CreateStringValue(redirect_url.spec())); |
+ SetResult(new base::StringValue(redirect_url.spec())); |
SendResponse(true); |
Release(); // Balanced in RunImpl. |
} |