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

Unified Diff: chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.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: chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
diff --git a/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc b/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
index a156a77775235a891080b3db1e5beec3b7724f4c..ee6471ebf38d9e3a7e45d774e3e2fa69b62def10 100644
--- a/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
@@ -16,6 +16,7 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_frame_host.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "net/base/load_flags.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
@@ -117,7 +118,8 @@ void ChromeOmniboxNavigationObserver::Observe(
content::NotificationService::AllSources());
if (fetcher_) {
fetcher_->SetRequestContext(
- controller->GetBrowserContext()->GetRequestContext());
+ content::BrowserContext::GetDefaultStoragePartition(
+ controller->GetBrowserContext())->GetURLRequestContext());
}
WebContentsObserver::Observe(web_contents);
// DidStartNavigationToPendingEntry() will be called for this load as well.

Powered by Google App Engine
This is Rietveld 408576698