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() { |