summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/search_provider.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 16:15:44 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 16:15:44 +0000
commit0bfc29a5e1dc622ef1ca3601296738112a9a9abf (patch)
treec2dc97f51a06d57db01cee5e1164cf0b81f9dc2a /chrome/browser/autocomplete/search_provider.cc
parent930709556e52f09d355aaf0c7b00e90d6042d4d9 (diff)
downloadchromium_src-0bfc29a5e1dc622ef1ca3601296738112a9a9abf.zip
chromium_src-0bfc29a5e1dc622ef1ca3601296738112a9a9abf.tar.gz
chromium_src-0bfc29a5e1dc622ef1ca3601296738112a9a9abf.tar.bz2
Searching by keyword now generates a visit against the site with a
transition type of TAB_TO_SEARCH. This visit increments the typed count and ensures if you use TAB_TO_SEARCH you still get autocompleted to the site. I'll add some tests for this, but want to make sure we're ok with it before I do that. BUG=3633 TEST=will be covered by unit tests. Review URL: http://codereview.chromium.org/93087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14609 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.cc')
-rw-r--r--chrome/browser/autocomplete/search_provider.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index 13d393c..2f123d8 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -713,7 +713,8 @@ void SearchProvider::AddMatchToMap(const std::wstring& query_string,
input_text);
// Search results don't look like URLs.
- match.transition = PageTransition::GENERATED;
+ match.transition =
+ is_keyword ? PageTransition::KEYWORD : PageTransition::GENERATED;
// Try to add |match| to |map|. If a match for |query_string| is already in
// |map|, replace it if |match| is more relevant.