33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
|
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
||
|
Date: Sun, 27 Oct 2019 10:21:19 +0100
|
||
|
Subject: Disable requests for single-word Omnibar searches
|
||
|
|
||
|
Patch from https://github.com/Eloston/ungoogled-chromium/issues/814#issuecomment-526873727
|
||
|
|
||
|
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||
|
Change-Id: Ice17747af04ce5576990a05e918d889677bf0a8b
|
||
|
---
|
||
|
.../ui/omnibox/chrome_omnibox_navigation_observer.cc | 7 -------
|
||
|
1 file changed, 7 deletions(-)
|
||
|
|
||
|
diff --git a/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc b/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
|
||
|
--- a/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
|
||
|
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
|
||
|
@@ -252,13 +252,6 @@ ChromeOmniboxNavigationObserver::ChromeOmniboxNavigationObserver(
|
||
|
profile_(profile),
|
||
|
show_infobar_(std::move(show_infobar)) {
|
||
|
NavigationUserData::CreateForNavigationHandle(navigation, this);
|
||
|
- if (alternative_nav_match_.destination_url.is_valid()) {
|
||
|
- loader_ = std::make_unique<AlternativeNavigationURLLoader>(
|
||
|
- alternative_nav_match.destination_url, this,
|
||
|
- base::BindOnce(
|
||
|
- &ChromeOmniboxNavigationObserver::OnAlternativeLoaderDone, this),
|
||
|
- GetURLLoaderFactory(loader_factory, profile));
|
||
|
- }
|
||
|
}
|
||
|
|
||
|
ChromeOmniboxNavigationObserver::~ChromeOmniboxNavigationObserver() {
|
||
|
--
|
||
|
2.40.1
|
||
|
|