[omnibox, browser stack] Make URL comparison looser for singletons
For dispositions of singleton and switch-to-tab, allow URLs which only
differ between http and https to match. This is done to allow
suggestions of http to find their ultimate destination.
Also happens to remove the enum NavigationPararms::IGNORE_AND_STAY_PUT
since it wasn't really being used, and enum NavigationParams::
RefBehavior since we force IGNORE_REF now.
Bug: 780835
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I73e7db51fdbef710b804966b482cb2cf0d6139ab
Reviewed-on: https://chromium-review.googlesource.com/949569
Reviewed-by: Rohit Rao <[email protected]>
Reviewed-by: Istiaque Ahmed <[email protected]>
Reviewed-by: Peter Kasting <[email protected]>
Commit-Queue: Kevin Bailey <[email protected]>
Cr-Commit-Position: refs/heads/master@{#542639}
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h
index 1766fbe..9465c0d 100644
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.h
@@ -66,13 +66,18 @@
void StartServiceWorker(const GURL& destination_url) override;
void OnAutocompleteControllerResultReady(
AutocompleteController* controller) override;
- bool IsTabOpenWithURL(const GURL& url) override;
+ bool IsTabOpenWithURL(const GURL& url,
+ const AutocompleteInput* input) override;
// For testing.
void set_storage_partition(content::StoragePartition* storage_partition) {
storage_partition_ = storage_partition;
}
+ bool StrippedURLsAreEqual(const GURL& url1,
+ const GURL& url2,
+ const AutocompleteInput* input);
+
private:
Profile* profile_;
ChromeAutocompleteSchemeClassifier scheme_classifier_;