[omnibox] Move switch-to-tab handling into browser stack
The Omnibox was calling SwitchToTabWithURL() directly from OpenMatch()
for tab-switch suggestions. This change creates a special disposition
for the suggestions and adds support for it within the browser stack.
Bug: 780835
Change-Id: I4f48e6a7a4b46cf9c1a88baedafc87aaf763ebef
Reviewed-on: https://chromium-review.googlesource.com/809527
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Peter Kasting <[email protected]>
Commit-Queue: Kevin Bailey <[email protected]>
Cr-Commit-Position: refs/heads/master@{#523573}
diff --git a/chrome/browser/ui/singleton_tabs.h b/chrome/browser/ui/singleton_tabs.h
index 0f579aa..71397c3 100644
--- a/chrome/browser/ui/singleton_tabs.h
+++ b/chrome/browser/ui/singleton_tabs.h
@@ -31,8 +31,8 @@
// Creates a NavigateParams struct for a singleton tab navigation.
NavigateParams GetSingletonTabNavigateParams(Browser* browser, const GURL& url);
-// If the given navigational URL is a Singleton, return the tab index for it.
-// Otherwise, returns -1.
-int GetIndexOfSingletonTab(NavigateParams* params);
+// If the given navigational URL is already open in |params->browser|, return
+// the tab index for it. Otherwise, returns -1.
+int GetIndexOfExistingTab(NavigateParams* params);
#endif // CHROME_BROWSER_UI_SINGLETON_TABS_H_