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

Unified Diff: components/autofill/content/browser/content_autofill_driver.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: components/autofill/content/browser/content_autofill_driver.cc
diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
index e68f29d89df4f5d9cd6d3f384bc568f3a23e1c4e..9d82a87be059629e17b3c1e74675890513f5d9b4 100644
--- a/components/autofill/content/browser/content_autofill_driver.cc
+++ b/components/autofill/content/browser/content_autofill_driver.cc
@@ -22,6 +22,7 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/site_instance.h"
+#include "content/public/browser/storage_partition.h"
#include "ipc/ipc_message_macros.h"
#include "ui/gfx/geometry/size_f.h"
@@ -52,9 +53,9 @@ bool ContentAutofillDriver::IsOffTheRecord() const {
}
net::URLRequestContextGetter* ContentAutofillDriver::GetURLRequestContext() {
- return render_frame_host_->GetSiteInstance()
- ->GetBrowserContext()
- ->GetRequestContext();
+ return content::BrowserContext::GetDefaultStoragePartition(
+ render_frame_host_->GetSiteInstance()->GetBrowserContext())->
+ GetURLRequestContext();
}
base::SequencedWorkerPool* ContentAutofillDriver::GetBlockingPool() {

Powered by Google App Engine
This is Rietveld 408576698