summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/search_provider.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 17:38:33 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-12 17:38:33 +0000
commitffaf78a76172755b47a12c408656818d05232b85 (patch)
tree40a385fee1c04574e34ae66e89a817761982d527 /chrome/browser/autocomplete/search_provider.cc
parentc1602a9988ef421b9773dc03da40c6bf184d22a1 (diff)
downloadchromium_src-ffaf78a76172755b47a12c408656818d05232b85.zip
chromium_src-ffaf78a76172755b47a12c408656818d05232b85.tar.gz
chromium_src-ffaf78a76172755b47a12c408656818d05232b85.tar.bz2
Omnibox metrics logging patch splitout, part 1: Random miscellaneous small style and similar changes. In one or two cases the motivation is not obvious without looking at the original patch.
Review URL: http://codereview.chromium.org/10822 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.cc')
-rw-r--r--chrome/browser/autocomplete/search_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index b7b260e..96fd52f 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -360,11 +360,11 @@ void SearchProvider::ConvertResultsToAutocompleteMatches() {
for (MatchMap::const_iterator i(map.begin()); i != map.end(); ++i)
matches_.push_back(i->second);
- if (navigation_results_.size()) {
+ if (!navigation_results_.empty()) {
// TODO(kochi): http://b/1170574 We add only one results for navigational
// suggestions. If we can get more useful information about the score,
// consider adding more results.
- matches_.push_back(NavigationToMatch(navigation_results_[0],
+ matches_.push_back(NavigationToMatch(navigation_results_.front(),
CalculateRelevanceForNavigation(0)));
}