Index: chrome/browser/extensions/api/identity/experimental_identity_api.cc |
diff --git a/chrome/browser/extensions/api/identity/experimental_identity_api.cc b/chrome/browser/extensions/api/identity/experimental_identity_api.cc |
index 2e01c4ec656e4cb83209b0887ba01eb78b6370ce..11e24081ab2160ab41c95aac8b8272919e31259a 100644 |
--- a/chrome/browser/extensions/api/identity/experimental_identity_api.cc |
+++ b/chrome/browser/extensions/api/identity/experimental_identity_api.cc |
@@ -102,7 +102,7 @@ bool ExperimentalIdentityGetAuthTokenFunction::RunImpl() { |
void ExperimentalIdentityGetAuthTokenFunction::CompleteFunctionWithResult( |
const std::string& access_token) { |
- SetResult(Value::CreateStringValue(access_token)); |
+ SetResult(new base::StringValue(access_token)); |
SendResponse(true); |
Release(); // Balanced in RunImpl. |
} |
@@ -385,7 +385,7 @@ void ExperimentalIdentityLaunchWebAuthFlowFunction::OnAuthFlowFailure( |
void ExperimentalIdentityLaunchWebAuthFlowFunction::OnAuthFlowURLChange( |
const GURL& redirect_url) { |
if (IsFinalRedirectURL(redirect_url)) { |
- SetResult(Value::CreateStringValue(redirect_url.spec())); |
+ SetResult(new base::StringValue(redirect_url.spec())); |
SendResponse(true); |
Release(); // Balanced in RunImpl. |
} |