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

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

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 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/download_database.cc
diff --git a/components/history/core/browser/download_database.cc b/components/history/core/browser/download_database.cc
index cf90813a67b707447cbf03e79347dcb632b3151c..8687d381e743522232d8409a0353d3a9098700ad 100644
--- a/components/history/core/browser/download_database.cc
+++ b/components/history/core/browser/download_database.cc
@@ -425,7 +425,7 @@ void DownloadDatabase::QueryDownloads(std::vector<DownloadRow>* results) {
dropped_reason,
DROPPED_REASON_MAX + 1);
} else {
- DCHECK(!ContainsKey(info_map, info->id));
+ DCHECK(!base::ContainsKey(info_map, info->id));
uint32_t id = info->id;
info_map[id] = info.release();
}
@@ -453,8 +453,8 @@ void DownloadDatabase::QueryDownloads(std::vector<DownloadRow>* results) {
// Confirm the id has already been seen--if it hasn't, discard the
// record.
- DCHECK(ContainsKey(info_map, id));
- if (!ContainsKey(info_map, id))
+ DCHECK(base::ContainsKey(info_map, id));
+ if (!base::ContainsKey(info_map, id))
continue;
// Confirm all previous URLs in the chain have already been seen;
« no previous file with comments | « components/guest_view/browser/guest_view_manager.cc ('k') | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698