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

Unified Diff: extensions/shell/browser/api/identity/identity_api.cc

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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: 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(

Powered by Google App Engine
This is Rietveld 408576698