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

Unified Diff: content/shell/browser/shell_access_token_store.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
« no previous file with comments | « content/public/test/test_browser_context.cc ('k') | content/shell/browser/shell_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_access_token_store.cc
diff --git a/content/shell/browser/shell_access_token_store.cc b/content/shell/browser/shell_access_token_store.cc
index 956ae1a4eea3a3dcf977d01b47817fc35e58b00b..4945e7c8276c878bb5e7efb40f641419d158eab1 100644
--- a/content/shell/browser/shell_access_token_store.cc
+++ b/content/shell/browser/shell_access_token_store.cc
@@ -8,6 +8,7 @@
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "content/shell/browser/shell_browser_context.h"
namespace content {
@@ -36,7 +37,9 @@ void ShellAccessTokenStore::LoadAccessTokens(
void ShellAccessTokenStore::GetRequestContextOnUIThread(
content::ShellBrowserContext* shell_browser_context) {
- system_request_context_ = shell_browser_context->GetRequestContext();
+ system_request_context_ =
+ BrowserContext::GetDefaultStoragePartition(shell_browser_context)->
+ GetURLRequestContext();
}
void ShellAccessTokenStore::RespondOnOriginatingThread(
« no previous file with comments | « content/public/test/test_browser_context.cc ('k') | content/shell/browser/shell_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698