Index: chrome/browser/history/query_parser.cc |
=================================================================== |
--- chrome/browser/history/query_parser.cc (revision 159706) |
+++ chrome/browser/history/query_parser.cc (working copy) |
@@ -125,16 +125,17 @@ |
bool QueryNodeWord::HasMatchIn(const std::vector<QueryWord>& words, |
Snippet::MatchPositions* match_positions) const { |
+ bool matched = false; |
for (size_t i = 0; i < words.size(); ++i) { |
if (Matches(words[i].word, false)) { |
size_t match_start = words[i].position; |
match_positions->push_back( |
Snippet::MatchPosition(match_start, |
match_start + static_cast<int>(word_.size()))); |
- return true; |
+ matched = true; |
} |
} |
- return false; |
+ return matched; |
} |
void QueryNodeWord::AppendWords(std::vector<string16>* words) const { |