From 71d6e77d7dfb71c8db3430e16f1777fb33ee2681 Mon Sep 17 00:00:00 2001 From: "arv@chromium.org" Date: Sun, 31 Jan 2010 00:10:31 +0000 Subject: Ignore ref (hash fragment) in URL when opening singleton tabs based on URLs. I renamed the method name in preparation of using this for opening the bookmark manager extension. BUG=None TEST=Open History. Do a search and open history again. We should not create a new tab but go to the existing one. Review URL: http://codereview.chromium.org/553151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37651 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/browser.h') diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index 5b43a6b..4058632 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -315,10 +315,10 @@ class Browser : public TabStripModelDelegate, // Returns true if a tab can be restored. virtual bool CanRestoreTab(); - // Show a DOMUI tab given a URL. If a tab with the same URL is already - // visible in this browser, it becomes selected. Otherwise a new tab is - // created. - void ShowSingleDOMUITab(const GURL& url); + // Show a given a URL. If a tab with the same URL (ignoring the ref) is + // already visible in this browser, it becomes selected. Otherwise a new tab + // is created. + void ShowSingletonTab(const GURL& url); // Update commands whose state depends on whether the window is in fullscreen // mode. This is a public function because on Linux, fullscreen mode is an -- cgit v1.1