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

Unified Diff: extensions/shell/browser/shell_oauth2_token_service_delegate.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/shell_oauth2_token_service_delegate.cc
diff --git a/extensions/shell/browser/shell_oauth2_token_service_delegate.cc b/extensions/shell/browser/shell_oauth2_token_service_delegate.cc
index 89eb2120447028e417e22256bded7dcdc1020ad4..759f3e2f24c829ccdc40f6983fb1209d4b7f1d9a 100644
--- a/extensions/shell/browser/shell_oauth2_token_service_delegate.cc
+++ b/extensions/shell/browser/shell_oauth2_token_service_delegate.cc
@@ -6,6 +6,8 @@
#include <vector>
+#include "content/public/browser/storage_partition.h"
+
namespace extensions {
ShellOAuth2TokenServiceDelegate::ShellOAuth2TokenServiceDelegate(
@@ -40,7 +42,8 @@ ShellOAuth2TokenServiceDelegate::CreateAccessTokenFetcher(
net::URLRequestContextGetter*
ShellOAuth2TokenServiceDelegate::GetRequestContext() const {
- return browser_context_->GetRequestContext();
+ return content::BrowserContext::GetDefaultStoragePartition(browser_context_)->
+ GetURLRequestContext();
}
std::vector<std::string> ShellOAuth2TokenServiceDelegate::GetAccounts() {
« no previous file with comments | « extensions/shell/browser/api/identity/identity_api.cc ('k') | headless/lib/browser/headless_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698