Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: components/history/core/browser/history_backend.cc

Issue 1340683002: Remove base's implicit_cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index ad61094c5702e56dddce0ef178a7d0071ac5969f..0a3252ed3a487ac66a0a21dc6c11c8baae0690e6 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -1367,7 +1367,7 @@ void HistoryBackend::QueryFilteredURLs(int result_count,
// Limit to the top |result_count| results.
std::sort(data.begin(), data.end(), PageUsageData::Predicate);
- if (result_count && implicit_cast<int>(data.size()) > result_count)
+ if (result_count && static_cast<int>(data.size()) > result_count)
vmpstr 2015/09/11 21:00:49 This should probably be either a saturated_cast or
danakj 2015/09/11 21:20:28 Changing the type seems a bit tricky, it does all
data.resize(result_count);
for (size_t i = 0; i < data.size(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698