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

Unified Diff: extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.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 | « extensions/browser/extensions_test.cc ('k') | extensions/shell/browser/api/identity/identity_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc
diff --git a/extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc b/extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc
index 9c2b738d07e8855034261af9d53d9234e6eebad0..69319de38e602e05f00b6c15a368fdded6d0eb92 100644
--- a/extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc
+++ b/extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc
@@ -5,6 +5,7 @@
#include "extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/common/url_fetcher.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
@@ -26,7 +27,9 @@ WebUIURLFetcher::~WebUIURLFetcher() {
void WebUIURLFetcher::Start() {
fetcher_ = net::URLFetcher::Create(url_, net::URLFetcher::GET, this);
- fetcher_->SetRequestContext(context_->GetRequestContext());
+ fetcher_->SetRequestContext(
+ content::BrowserContext::GetDefaultStoragePartition(context_)->
+ GetURLRequestContext());
fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
content::AssociateURLFetcherWithRenderFrame(
« no previous file with comments | « extensions/browser/extensions_test.cc ('k') | extensions/shell/browser/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698