Index: chrome/browser/history/text_database.cc |
diff --git a/chrome/browser/history/text_database.cc b/chrome/browser/history/text_database.cc |
index 6bf32707a18f856c4989fdf4a95b6ff41ef653c2..28c8da4d668343411938692f43a2c655be5e1980 100644 |
--- a/chrome/browser/history/text_database.cc |
+++ b/chrome/browser/history/text_database.cc |
@@ -367,7 +367,7 @@ void TextDatabase::GetTextMatches(const std::string& query, |
// When we have returned all the results possible (or determined that there |
// are none), then we have searched all the time requested, so we can |
// set the first_time_searched to that value. |
- if (results->size() == 0 || |
+ if (results->empty() || |
options.max_count == 0 || // Special case for wanting all the results. |
static_cast<int>(results->size()) < options.max_count) { |
*first_time_searched = options.begin_time; |