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

Unified Diff: chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.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: 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 ee6471ebf38d9e3a7e45d774e3e2fa69b62def10..a156a77775235a891080b3db1e5beec3b7724f4c 100644
--- a/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
@@ -16,7 +16,6 @@
#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"
@@ -118,8 +117,7 @@
content::NotificationService::AllSources());
if (fetcher_) {
fetcher_->SetRequestContext(
- content::BrowserContext::GetDefaultStoragePartition(
- controller->GetBrowserContext())->GetURLRequestContext());
+ controller->GetBrowserContext()->GetRequestContext());
}
WebContentsObserver::Observe(web_contents);
// DidStartNavigationToPendingEntry() will be called for this load as well.

Powered by Google App Engine
This is Rietveld 408576698