summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 23:42:16 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 23:42:16 +0000
commit73765a778fae775afa42f35511e4a4922d87dfc1 (patch)
treecc79e66fa0dd27a57a8a09c890068ebb764c8b4b /chrome/browser/ui/gtk
parent0eafc096894e1f219a8f71572bf0e5b85fabf17b (diff)
downloadchromium_src-73765a778fae775afa42f35511e4a4922d87dfc1.zip
chromium_src-73765a778fae775afa42f35511e4a4922d87dfc1.tar.gz
chromium_src-73765a778fae775afa42f35511e4a4922d87dfc1.tar.bz2
linux-aura: Restore middle-click on new-tab button behaviour.
Middle-clicking on new-tab button opens a new tab and navigates to the URL in the clipboard, or navigates to the search-result page for the clipboard content if it's not a URL. BUG=319011 R=sky@chromium.org Review URL: https://codereview.chromium.org/74133003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk')
-rw-r--r--chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc
index 9603427..cd69607 100644
--- a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc
+++ b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc
@@ -2185,7 +2185,7 @@ void TabStripGtk::OnNewTabClicked(GtkWidget* widget) {
content::RecordAction(UserMetricsAction("NewTab_Button"));
UMA_HISTOGRAM_ENUMERATION("Tab.NewTab", TabStripModel::NEW_TAB_BUTTON,
TabStripModel::NEW_TAB_ENUM_COUNT);
- model_->delegate()->AddBlankTabAt(-1, true);
+ model_->delegate()->AddURLTabAt(GURL(), -1, true);
break;
case 2: {
// On middle-click, try to parse the PRIMARY selection as a URL and load