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

Unified Diff: chrome/browser/media_galleries/linux/mtp_read_file_worker.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 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
Index: chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
diff --git a/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc b/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
index 5d11427559f15bb2b64cad5252aea298e776d29a..4d554f33876d7f9287895b776e0593d69d1a6d7d 100644
--- a/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
+++ b/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
@@ -23,12 +23,12 @@ namespace {
// the file thread.
// Returns the number of bytes written to the snapshot file. In case of failure,
// returns zero.
-uint32 WriteDataChunkIntoSnapshotFileOnFileThread(
+uint32_t WriteDataChunkIntoSnapshotFileOnFileThread(
const base::FilePath& snapshot_file_path,
const std::string& data) {
DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
return base::AppendToFile(snapshot_file_path, data.c_str(), data.size())
- ? base::checked_cast<uint32>(data.size())
+ ? base::checked_cast<uint32_t>(data.size())
: 0;
}
@@ -103,7 +103,7 @@ void MTPReadFileWorker::OnDidReadDataChunkFromDeviceFile(
void MTPReadFileWorker::OnDidWriteDataChunkIntoSnapshotFile(
scoped_ptr<SnapshotFileDetails> snapshot_file_details,
- uint32 bytes_written) {
+ uint32_t bytes_written) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(snapshot_file_details.get());
if (snapshot_file_details->AddBytesWritten(bytes_written)) {

Powered by Google App Engine
This is Rietveld 408576698