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

Unified Diff: chrome/browser/download/download_history.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/browser/download/download_history.h ('k') | chrome/browser/download/download_history_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_history.cc
diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
index becc0e55a9b176f50e096857a088c1eac42359dc..c04df4b85b50e915f046cad1cb9ac8718b9f1c6f 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -28,6 +28,7 @@
#include "chrome/browser/download/download_history.h"
+#include "base/macros.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/download/download_crx_util.h"
#include "components/history/content/browser/download_constants_utils.h"
@@ -192,7 +193,7 @@ void DownloadHistory::HistoryAdapter::UpdateDownload(
}
void DownloadHistory::HistoryAdapter::RemoveDownloads(
- const std::set<uint32>& ids) {
+ const std::set<uint32_t>& ids) {
history_->RemoveDownloads(ids);
}
@@ -295,7 +296,7 @@ void DownloadHistory::QueryCallback(scoped_ptr<InfoVector> infos) {
void DownloadHistory::MaybeAddToHistory(content::DownloadItem* item) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- uint32 download_id = item->GetId();
+ uint32_t download_id = item->GetId();
DownloadHistoryData* data = DownloadHistoryData::Get(item);
bool removing = removing_ids_.find(download_id) != removing_ids_.end();
@@ -321,7 +322,7 @@ void DownloadHistory::MaybeAddToHistory(content::DownloadItem* item) {
item, *data->info()));
}
-void DownloadHistory::ItemAdded(uint32 download_id, bool success) {
+void DownloadHistory::ItemAdded(uint32_t download_id, bool success) {
if (removed_while_adding_.find(download_id) !=
removed_while_adding_.end()) {
removed_while_adding_.erase(download_id);
@@ -444,7 +445,7 @@ void DownloadHistory::OnDownloadRemoved(
--history_size_;
}
-void DownloadHistory::ScheduleRemoveDownload(uint32 download_id) {
+void DownloadHistory::ScheduleRemoveDownload(uint32_t download_id) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
// For database efficiency, batch removals together if they happen all at
« no previous file with comments | « chrome/browser/download/download_history.h ('k') | chrome/browser/download/download_history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698