summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-20 19:43:11 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-20 19:43:11 +0000
commitc67afaee8860470a3b716ed595223e0a187a9ade (patch)
treeb5fc82a174bbefc986b3976c0605ac2dd6ca1b08 /chrome
parent606b18ddd165d3ff47e2d7c1b87f16ee4147bea3 (diff)
downloadchromium_src-c67afaee8860470a3b716ed595223e0a187a9ade.zip
chromium_src-c67afaee8860470a3b716ed595223e0a187a9ade.tar.gz
chromium_src-c67afaee8860470a3b716ed595223e0a187a9ade.tar.bz2
Use the URLFixerUpper on entry
Review URL: http://codereview.chromium.org/27004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/browser_toolbar_view_gtk.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_toolbar_view_gtk.cc b/chrome/browser/gtk/browser_toolbar_view_gtk.cc
index 9ebccc4..b3c4cfa 100644
--- a/chrome/browser/gtk/browser_toolbar_view_gtk.cc
+++ b/chrome/browser/gtk/browser_toolbar_view_gtk.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/gtk/custom_button.h"
#include "chrome/browser/gtk/back_forward_menu_model_gtk.h"
#include "chrome/browser/gtk/standard_menus.h"
+#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/common/l10n_util.h"
#include "chrome/common/resource_bundle.h"
@@ -215,7 +216,8 @@ CustomContainerButton* BrowserToolbarGtk::BuildToolbarMenuButton(
// static
void BrowserToolbarGtk::OnEntryActivate(GtkEntry *entry,
BrowserToolbarGtk* toolbar) {
- GURL dest(std::string(gtk_entry_get_text(entry)));
+ GURL dest(URLFixerUpper::FixupURL(std::string(gtk_entry_get_text(entry)),
+ std::string()));
toolbar->browser_->OpenURLFromTab(NULL, dest, GURL(),
CURRENT_TAB,
PageTransition::TYPED);