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

Unified Diff: content/shell/browser/shell_download_manager_delegate.cc

Issue 1544273002: Switch to standard integer types in content/. (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
Index: content/shell/browser/shell_download_manager_delegate.cc
diff --git a/content/shell/browser/shell_download_manager_delegate.cc b/content/shell/browser/shell_download_manager_delegate.cc
index da4978ee419b25a575927c51f776f27cbc8e0e3b..cbe4a6577acdea19817013b35a4e688f7341a308 100644
--- a/content/shell/browser/shell_download_manager_delegate.cc
+++ b/content/shell/browser/shell_download_manager_delegate.cc
@@ -13,8 +13,10 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_manager.h"
@@ -102,7 +104,7 @@ bool ShellDownloadManagerDelegate::ShouldOpenDownload(
void ShellDownloadManagerDelegate::GetNextId(
const DownloadIdCallback& callback) {
- static uint32 next_id = DownloadItem::kInvalidId + 1;
+ static uint32_t next_id = DownloadItem::kInvalidId + 1;
callback.Run(next_id++);
}
@@ -131,7 +133,7 @@ void ShellDownloadManagerDelegate::GenerateFilename(
}
void ShellDownloadManagerDelegate::OnDownloadPathGenerated(
- uint32 download_id,
+ uint32_t download_id,
const DownloadTargetCallback& callback,
const base::FilePath& suggested_path) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -147,7 +149,7 @@ void ShellDownloadManagerDelegate::OnDownloadPathGenerated(
}
void ShellDownloadManagerDelegate::ChooseDownloadPath(
- uint32 download_id,
+ uint32_t download_id,
const DownloadTargetCallback& callback,
const base::FilePath& suggested_path) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
« no previous file with comments | « content/shell/browser/shell_download_manager_delegate.h ('k') | content/shell/browser/shell_javascript_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698