matches_ 122 chrome/browser/autocomplete/autocomplete_provider.cc if (matches_.empty()) matches_ 132 chrome/browser/autocomplete/autocomplete_provider.cc for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) matches_ 218 chrome/browser/autocomplete/autocomplete_provider.h const ACMatches& matches() const { return matches_; } matches_ 274 chrome/browser/autocomplete/autocomplete_provider.h ACMatches matches_; matches_ 85 chrome/browser/autocomplete/autocomplete_provider_unittest.cc matches_.clear(); matches_ 147 chrome/browser/autocomplete/autocomplete_provider_unittest.cc matches_.push_back(match); matches_ 81 chrome/browser/autocomplete/autocomplete_result.cc matches_.reserve(kMaxMatches); matches_ 140 chrome/browser/autocomplete/autocomplete_result.cc std::copy(matches.begin(), matches.end(), std::back_inserter(matches_)); matches_ 147 chrome/browser/autocomplete/autocomplete_result.cc for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) matches_ 151 chrome/browser/autocomplete/autocomplete_result.cc std::sort(matches_.begin(), matches_.end(), matches_ 155 chrome/browser/autocomplete/autocomplete_result.cc for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { matches_ 156 chrome/browser/autocomplete/autocomplete_result.cc for (int j = 1; (i + j != matches_.end()) && matches_ 168 chrome/browser/autocomplete/autocomplete_result.cc matches_.erase(std::unique(matches_.begin(), matches_.end(), matches_ 170 chrome/browser/autocomplete/autocomplete_result.cc matches_.end()); matches_ 173 chrome/browser/autocomplete/autocomplete_result.cc if (!matches_.empty()) matches_ 174 chrome/browser/autocomplete/autocomplete_result.cc std::partial_sort(matches_.begin(), matches_.begin() + 1, matches_.end(), matches_ 180 chrome/browser/autocomplete/autocomplete_result.cc const bool preserve_top_match = !matches_.empty() && matches_ 181 chrome/browser/autocomplete/autocomplete_result.cc (undemotable_top_types.count(matches_.begin()->type) != 0); matches_ 184 chrome/browser/autocomplete/autocomplete_result.cc size_t max_num_matches = std::min(kMaxMatches, matches_.size()); matches_ 186 chrome/browser/autocomplete/autocomplete_result.cc std::sort(matches_.begin() + (preserve_top_match ? 1 : 0), matches_.end(), matches_ 188 chrome/browser/autocomplete/autocomplete_result.cc if (!matches_.empty() && !matches_.begin()->allowed_to_be_default_match && matches_ 193 chrome/browser/autocomplete/autocomplete_result.cc for (AutocompleteResult::iterator it = matches_.begin() + 1; matches_ 194 chrome/browser/autocomplete/autocomplete_result.cc it != matches_.end(); ++it) { matches_ 196 chrome/browser/autocomplete/autocomplete_result.cc std::rotate(matches_.begin(), it, it + 1); matches_ 207 chrome/browser/autocomplete/autocomplete_result.cc matches_.resize(num_matches); matches_ 209 chrome/browser/autocomplete/autocomplete_result.cc default_match_ = matches_.begin(); matches_ 211 chrome/browser/autocomplete/autocomplete_result.cc if (default_match_ != matches_.end()) { matches_ 237 chrome/browser/autocomplete/autocomplete_result.cc alternate_nav_url_ = (default_match_ == matches_.end()) ? matches_ 250 chrome/browser/autocomplete/autocomplete_result.cc return matches_.size(); matches_ 254 chrome/browser/autocomplete/autocomplete_result.cc return matches_.empty(); matches_ 258 chrome/browser/autocomplete/autocomplete_result.cc return matches_.begin(); matches_ 262 chrome/browser/autocomplete/autocomplete_result.cc return matches_.begin(); matches_ 266 chrome/browser/autocomplete/autocomplete_result.cc return matches_.end(); matches_ 270 chrome/browser/autocomplete/autocomplete_result.cc return matches_.end(); matches_ 275 chrome/browser/autocomplete/autocomplete_result.cc DCHECK_LT(index, matches_.size()); matches_ 276 chrome/browser/autocomplete/autocomplete_result.cc return matches_[index]; matches_ 280 chrome/browser/autocomplete/autocomplete_result.cc DCHECK_LT(index, matches_.size()); matches_ 281 chrome/browser/autocomplete/autocomplete_result.cc return &matches_[index]; matches_ 304 chrome/browser/autocomplete/autocomplete_result.cc matches_.clear(); matches_ 312 chrome/browser/autocomplete/autocomplete_result.cc matches_.swap(other->matches_); matches_ 340 chrome/browser/autocomplete/autocomplete_result.cc matches_ = rhs.matches_; matches_ 364 chrome/browser/autocomplete/autocomplete_result.cc matches_.insert(insertion_point, match); matches_ 393 chrome/browser/autocomplete/autocomplete_result.cc matches_.front().relevance : new_matches[0].relevance) - 1; matches_ 188 chrome/browser/autocomplete/autocomplete_result.h ACMatches matches_; matches_ 883 chrome/browser/autocomplete/base_search_provider.cc for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { matches_ 890 chrome/browser/autocomplete/base_search_provider.cc matches_.erase(i); matches_ 40 chrome/browser/autocomplete/bookmark_provider.cc matches_.clear(); matches_ 103 chrome/browser/autocomplete/bookmark_provider.cc matches_.push_back(match); matches_ 108 chrome/browser/autocomplete/bookmark_provider.cc if (matches_.size() > max_matches) { matches_ 109 chrome/browser/autocomplete/bookmark_provider.cc std::partial_sort(matches_.begin(), matches_ 110 chrome/browser/autocomplete/bookmark_provider.cc matches_.begin() + max_matches, matches_ 111 chrome/browser/autocomplete/bookmark_provider.cc matches_.end(), matches_ 113 chrome/browser/autocomplete/bookmark_provider.cc matches_.resize(max_matches); matches_ 115 chrome/browser/autocomplete/bookmark_provider.cc std::sort(matches_.begin(), matches_.end(), matches_ 60 chrome/browser/autocomplete/builtin_provider.cc matches_.clear(); matches_ 106 chrome/browser/autocomplete/builtin_provider.cc (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) { matches_ 120 chrome/browser/autocomplete/builtin_provider.cc for (size_t i = 0; i < matches_.size(); ++i) matches_ 121 chrome/browser/autocomplete/builtin_provider.cc matches_[i].relevance = kRelevance + matches_.size() - (i + 1); matches_ 122 chrome/browser/autocomplete/builtin_provider.cc if (!input.prevent_inline_autocomplete() && (matches_.size() == 1)) { matches_ 126 chrome/browser/autocomplete/builtin_provider.cc matches_[0].relevance = 1250; matches_ 127 chrome/browser/autocomplete/builtin_provider.cc matches_[0].allowed_to_be_default_match = true; matches_ 143 chrome/browser/autocomplete/builtin_provider.cc matches_.push_back(match); matches_ 104 chrome/browser/autocomplete/extension_app_provider.cc matches_.clear(); matches_ 141 chrome/browser/autocomplete/extension_app_provider.cc matches_.push_back(CreateAutocompleteMatch( matches_ 46 chrome/browser/autocomplete/history_provider.cc for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { matches_ 56 chrome/browser/autocomplete/history_provider.cc matches_.erase(i); matches_ 63 chrome/browser/autocomplete/history_quick_provider.cc matches_.clear(); matches_ 244 chrome/browser/autocomplete/history_quick_provider.cc matches_.push_back(QuickMatchToACMatch(history_match, max_match_score)); matches_ 114 chrome/browser/autocomplete/history_quick_provider_unittest.cc std::set<std::string> LeftOvers() const { return matches_; } matches_ 117 chrome/browser/autocomplete/history_quick_provider_unittest.cc std::set<std::string> matches_; matches_ 233 chrome/browser/autocomplete/history_quick_provider_unittest.cc matches_.insert(iter->destination_url.spec()); matches_ 238 chrome/browser/autocomplete/history_quick_provider_unittest.cc EXPECT_EQ(1U, matches_.erase(expected)) matches_ 653 chrome/browser/autocomplete/history_url_provider.cc matches_.swap(params->matches); matches_ 692 chrome/browser/autocomplete/history_url_provider.cc matches_.clear(); matches_ 709 chrome/browser/autocomplete/history_url_provider.cc matches_.push_back(what_you_typed); matches_ 761 chrome/browser/autocomplete/history_url_provider.cc matches_.clear(); matches_ 762 chrome/browser/autocomplete/history_url_provider.cc matches_.swap(params->matches); matches_ 205 chrome/browser/autocomplete/history_url_provider_unittest.cc ACMatches matches_; matches_ 290 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_ = autocomplete_->matches(); matches_ 292 chrome/browser/autocomplete/history_url_provider_unittest.cc for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i) matches_ 294 chrome/browser/autocomplete/history_url_provider_unittest.cc std::sort(matches_.begin(), matches_.end(), matches_ 296 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_.erase(std::unique(matches_.begin(), matches_.end(), matches_ 298 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_.end()); matches_ 299 chrome/browser/autocomplete/history_url_provider_unittest.cc std::sort(matches_.begin(), matches_.end(), matches_ 302 chrome/browser/autocomplete/history_url_provider_unittest.cc ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text matches_ 305 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_EQ(expected_urls[i].url, matches_[i].destination_url.spec()); matches_ 307 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_[i].allowed_to_be_default_match); matches_ 341 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_.front().relevance, 1200); matches_ 348 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_GE(matches_.front().relevance, 1410); matches_ 360 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_EQ(ASCIIToUTF16("Google News"), matches_.front().description); matches_ 518 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_.front().inline_autocompletion); matches_ 531 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_.front().inline_autocompletion); matches_ 572 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_ = autocomplete_->matches(); matches_ 573 chrome/browser/autocomplete/history_url_provider_unittest.cc ASSERT_GT(matches_.size(), 0u); matches_ 574 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_EQ(GURL("http://pandora.com/"), matches_[0].destination_url); matches_ 575 chrome/browser/autocomplete/history_url_provider_unittest.cc int pandora_relevance = matches_[0].relevance; matches_ 580 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_ = autocomplete_->matches(); matches_ 581 chrome/browser/autocomplete/history_url_provider_unittest.cc ASSERT_GT(matches_.size(), 0u); matches_ 582 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_EQ(GURL("http://pandora.com/"), matches_[0].destination_url); matches_ 583 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_EQ(pandora_relevance, matches_[0].relevance); matches_ 614 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_ = autocomplete_->matches(); matches_ 615 chrome/browser/autocomplete/history_url_provider_unittest.cc for (size_t i = 0; i < matches_.size(); ++i) { matches_ 616 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_TRUE(matches_[i].inline_autocompletion.empty()); matches_ 617 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_FALSE(matches_[i].allowed_to_be_default_match); matches_ 631 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(1200, matches_[0].relevance); matches_ 632 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, 1210); matches_ 664 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(test_cases[i].relevance, matches_[0].relevance); matches_ 665 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, test_cases[i].relevance + 10); matches_ 697 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(test_cases[i].relevance, matches_[0].relevance); matches_ 698 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, test_cases[i].relevance + 10); matches_ 720 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(1410, matches_[0].relevance); matches_ 721 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, 1420); matches_ 722 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_EQ(matches_[0].relevance - 1, matches_[1].relevance); matches_ 732 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(1400, matches_[0].relevance); matches_ 733 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, 1410); matches_ 756 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(1410, matches_[0].relevance); matches_ 757 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, 1420); matches_ 764 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(1400, matches_[0].relevance); matches_ 765 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, 1410); matches_ 772 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LE(1400, matches_[0].relevance); matches_ 773 chrome/browser/autocomplete/history_url_provider_unittest.cc EXPECT_LT(matches_[0].relevance, 1410); matches_ 1012 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_[j].relevance); matches_ 1022 chrome/browser/autocomplete/history_url_provider_unittest.cc matches_[j].relevance); matches_ 232 chrome/browser/autocomplete/keyword_provider.cc matches_.clear(); matches_ 327 chrome/browser/autocomplete/keyword_provider.cc matches_.push_back(CreateAutocompleteMatch( matches_ 342 chrome/browser/autocomplete/keyword_provider.cc &matches_[0]); matches_ 350 chrome/browser/autocomplete/keyword_provider.cc matches_.push_back(extension_suggest_matches_[i]); matches_ 351 chrome/browser/autocomplete/keyword_provider.cc matches_.back().relevance = matches_[0].relevance - (i + 1); matches_ 373 chrome/browser/autocomplete/keyword_provider.cc matches_.push_back(CreateAutocompleteMatch( matches_ 543 chrome/browser/autocomplete/keyword_provider.cc if (matches_.empty() || current_keyword_extension_id_.empty() || matches_ 552 chrome/browser/autocomplete/keyword_provider.cc &matches_[0]); matches_ 598 chrome/browser/autocomplete/keyword_provider.cc matches_.insert(matches_.end(), extension_suggest_matches_.begin(), matches_ 240 chrome/browser/autocomplete/search_provider.cc matches_.clear(); matches_ 297 chrome/browser/autocomplete/search_provider.cc matches_.push_back(match); matches_ 418 chrome/browser/autocomplete/search_provider.cc if (!matches_.empty() && matches_ 496 chrome/browser/autocomplete/search_provider.cc "Omnibox.SearchProviderMatches", matches_.size(), 1, 6, 7); matches_ 503 chrome/browser/autocomplete/search_provider.cc for (ACMatches::iterator it = matches_.begin(); it != matches_.end(); matches_ 891 chrome/browser/autocomplete/search_provider.cc matches_.clear(); matches_ 896 chrome/browser/autocomplete/search_provider.cc (matches_.size() < AutocompleteResult::kMaxMatches); matches_ 914 chrome/browser/autocomplete/search_provider.cc matches_.push_back(*i); matches_ 923 chrome/browser/autocomplete/search_provider.cc return matches_.begin(); matches_ 924 chrome/browser/autocomplete/search_provider.cc ACMatches::const_iterator it = matches_.begin(); matches_ 925 chrome/browser/autocomplete/search_provider.cc while ((it != matches_.end()) && !it->allowed_to_be_default_match) matches_ 935 chrome/browser/autocomplete/search_provider.cc (first_match != matches_.end()) && matches_ 945 chrome/browser/autocomplete/search_provider.cc for (ACMatches::const_iterator it = matches_.begin(); it != matches_.end(); matches_ 969 chrome/browser/autocomplete/search_provider.cc return matches_.front().relevance < matches_ 978 chrome/browser/autocomplete/search_provider.cc (first_match != matches_.end()) && matches_ 990 chrome/browser/autocomplete/search_provider.cc for (ACMatches::const_iterator it = matches_.begin(); it != matches_.end(); matches_ 4060 chrome/browser/autocomplete/search_provider_unittest.cc provider_->matches_.push_back(match); matches_ 4063 chrome/browser/autocomplete/search_provider_unittest.cc EXPECT_TRUE(provider_->matches_.empty()); matches_ 4074 chrome/browser/autocomplete/search_provider_unittest.cc provider_->matches_.push_back(match); matches_ 90 chrome/browser/autocomplete/shortcuts_provider.cc matches_.clear(); matches_ 127 chrome/browser/autocomplete/shortcuts_provider.cc matches_.erase(std::remove_if(matches_.begin(), matches_.end(), matches_ 129 chrome/browser/autocomplete/shortcuts_provider.cc matches_.end()); matches_ 180 chrome/browser/autocomplete/shortcuts_provider.cc matches_.push_back(ShortcutToACMatch( matches_ 183 chrome/browser/autocomplete/shortcuts_provider.cc matches_.back().ComputeStrippedDestinationURL(profile_); matches_ 187 chrome/browser/autocomplete/shortcuts_provider.cc std::sort(matches_.begin(), matches_.end(), matches_ 189 chrome/browser/autocomplete/shortcuts_provider.cc matches_.erase(std::unique(matches_.begin(), matches_.end(), matches_ 191 chrome/browser/autocomplete/shortcuts_provider.cc matches_.end()); matches_ 193 chrome/browser/autocomplete/shortcuts_provider.cc std::partial_sort(matches_.begin(), matches_ 194 chrome/browser/autocomplete/shortcuts_provider.cc matches_.begin() + matches_ 195 chrome/browser/autocomplete/shortcuts_provider.cc std::min(AutocompleteProvider::kMaxMatches, matches_.size()), matches_ 196 chrome/browser/autocomplete/shortcuts_provider.cc matches_.end(), &AutocompleteMatch::MoreRelevant); matches_ 197 chrome/browser/autocomplete/shortcuts_provider.cc if (matches_.size() > AutocompleteProvider::kMaxMatches) { matches_ 198 chrome/browser/autocomplete/shortcuts_provider.cc matches_.erase(matches_.begin() + AutocompleteProvider::kMaxMatches, matches_ 199 chrome/browser/autocomplete/shortcuts_provider.cc matches_.end()); matches_ 209 chrome/browser/autocomplete/shortcuts_provider.cc (matches_.empty() || !matches_.front().allowed_to_be_default_match)) { matches_ 213 chrome/browser/autocomplete/shortcuts_provider.cc for (ACMatches::iterator it = matches_.begin(); it != matches_.end(); ++it) { matches_ 207 chrome/browser/autocomplete/shortcuts_provider_unittest.cc const ACMatchClassifications matches_; matches_ 221 chrome/browser/autocomplete/shortcuts_provider_unittest.cc ShortcutsProvider::CreateWordMapForString(find_text), text_, matches_); matches_ 247 chrome/browser/autocomplete/shortcuts_provider_unittest.cc return matches_; matches_ 251 chrome/browser/autocomplete/shortcuts_provider_unittest.cc std::set<ExpectedURLAndAllowedToBeDefault> matches_; matches_ 336 chrome/browser/autocomplete/shortcuts_provider_unittest.cc matches_.insert(ExpectedURLAndAllowedToBeDefault( matches_ 342 chrome/browser/autocomplete/shortcuts_provider_unittest.cc EXPECT_EQ(1U, matches_.erase(expected)); matches_ 85 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.clear(); matches_ 290 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.clear(); matches_ 312 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.push_back(current_url_match_); matches_ 327 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.push_back(NavigationToMatch(nav)); matches_ 338 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.push_back(current_url_match_); matches_ 341 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.push_back(it->second); matches_ 346 chrome/browser/autocomplete/zero_suggest_provider.cc matches_.push_back(NavigationToMatch(*it)); matches_ 257 chrome/browser/history/snippet.cc matches_.push_back(std::make_pair(first, snippet.size())); matches_ 296 chrome/browser/history/snippet.cc matches_.swap(other->matches_); matches_ 56 chrome/browser/history/snippet.h const MatchPositions& matches() const { return matches_; } matches_ 66 chrome/browser/history/snippet.h MatchPositions matches_; matches_ 243 components/url_matcher/substring_set_matcher.cc matches_(other.matches_) {} matches_ 250 components/url_matcher/substring_set_matcher.cc matches_ = other.matches_; matches_ 264 components/url_matcher/substring_set_matcher.cc matches_.insert(id); matches_ 269 components/url_matcher/substring_set_matcher.cc matches_.insert(matches.begin(), matches.end()); matches_ 104 components/url_matcher/substring_set_matcher.h const Matches& matches() const { return matches_; } matches_ 114 components/url_matcher/substring_set_matcher.h Matches matches_; matches_ 230 extensions/common/features/simple_feature.cc ParseURLPatterns(value, "matches", &matches_); matches_ 247 extensions/common/features/simple_feature.cc if (matches_.is_empty() && contexts_.count(WEB_PAGE_CONTEXT) != 0) { matches_ 345 extensions/common/features/simple_feature.cc if (!matches_.is_empty() && !matches_.MatchesURL(url)) matches_ 115 extensions/common/features/simple_feature.h URLPatternSet matches_;