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

Unified Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 1878153002: Revert of Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 9d82a87be059629e17b3c1e74675890513f5d9b4..e68f29d89df4f5d9cd6d3f384bc568f3a23e1c4e 100644
--- a/components/autofill/content/browser/content_autofill_driver.cc
+++ b/components/autofill/content/browser/content_autofill_driver.cc
@@ -22,7 +22,6 @@
#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"
@@ -53,9 +52,9 @@
}
net::URLRequestContextGetter* ContentAutofillDriver::GetURLRequestContext() {
- return content::BrowserContext::GetDefaultStoragePartition(
- render_frame_host_->GetSiteInstance()->GetBrowserContext())->
- GetURLRequestContext();
+ return render_frame_host_->GetSiteInstance()
+ ->GetBrowserContext()
+ ->GetRequestContext();
}
base::SequencedWorkerPool* ContentAutofillDriver::GetBlockingPool() {

Powered by Google App Engine
This is Rietveld 408576698