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. |