Index: extensions/shell/browser/api/identity/identity_api.cc |
diff --git a/extensions/shell/browser/api/identity/identity_api.cc b/extensions/shell/browser/api/identity/identity_api.cc |
index bf8ad1f8fdace351a81d6560279ba6e22278a8f4..ac3042750f3386e00b27984d25dbc105eab65b56 100644 |
--- a/extensions/shell/browser/api/identity/identity_api.cc |
+++ b/extensions/shell/browser/api/identity/identity_api.cc |
@@ -9,6 +9,7 @@ |
#include "base/guid.h" |
#include "content/public/browser/browser_context.h" |
+#include "content/public/browser/storage_partition.h" |
#include "extensions/common/manifest_handlers/oauth2_manifest_handler.h" |
#include "extensions/shell/browser/shell_oauth2_token_service.h" |
#include "extensions/shell/common/api/identity.h" |
@@ -109,7 +110,10 @@ void IdentityGetAuthTokenFunction::OnGetTokenSuccess( |
} |
// Use the logging-in-user access token to mint an access token for this app. |
- mint_token_flow_->Start(browser_context()->GetRequestContext(), access_token); |
+ mint_token_flow_->Start( |
+ content::BrowserContext::GetDefaultStoragePartition(browser_context())-> |
+ GetURLRequestContext(), |
+ access_token); |
} |
void IdentityGetAuthTokenFunction::OnGetTokenFailure( |