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

Unified Diff: chromecast/browser/geolocation/cast_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
Index: chromecast/browser/geolocation/cast_access_token_store.cc
diff --git a/chromecast/browser/geolocation/cast_access_token_store.cc b/chromecast/browser/geolocation/cast_access_token_store.cc
index 32f944d0099905a494373e5f7c514f8da2cfc58f..64a182a2c0a2a123b2631fa7edcdc46e0862d39f 100644
--- a/chromecast/browser/geolocation/cast_access_token_store.cc
+++ b/chromecast/browser/geolocation/cast_access_token_store.cc
@@ -8,6 +8,7 @@
#include "chromecast/browser/cast_browser_context.h"
#include "chromecast/browser/cast_content_browser_client.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_client.h"
namespace chromecast {
@@ -22,7 +23,8 @@ CastAccessTokenStore::~CastAccessTokenStore() {
}
void CastAccessTokenStore::GetRequestContextGetterOnUIThread() {
- request_context_ = browser_context_->GetRequestContext();
+ request_context_ = content::BrowserContext::GetDefaultStoragePartition(
+ browser_context_)->GetURLRequestContext();
}
void CastAccessTokenStore::RespondOnOriginatingThread() {
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | components/autofill/content/browser/content_autofill_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698