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

Unified Diff: extensions/shell/browser/shell_oauth2_token_service_delegate.cc

Issue 1878153002: Revert of Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 759f3e2f24c829ccdc40f6983fb1209d4b7f1d9a..89eb2120447028e417e22256bded7dcdc1020ad4 100644
--- a/extensions/shell/browser/shell_oauth2_token_service_delegate.cc
+++ b/extensions/shell/browser/shell_oauth2_token_service_delegate.cc
@@ -5,8 +5,6 @@
#include "extensions/shell/browser/shell_oauth2_token_service_delegate.h"
#include <vector>
-
-#include "content/public/browser/storage_partition.h"
namespace extensions {
@@ -42,8 +40,7 @@
net::URLRequestContextGetter*
ShellOAuth2TokenServiceDelegate::GetRequestContext() const {
- return content::BrowserContext::GetDefaultStoragePartition(browser_context_)->
- GetURLRequestContext();
+ return browser_context_->GetRequestContext();
}
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