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

Unified Diff: components/storage_monitor/volume_mount_watcher_win.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 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 | « components/storage_monitor/volume_mount_watcher_win.h ('k') | components/suggestions/blacklist_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/storage_monitor/volume_mount_watcher_win.cc
diff --git a/components/storage_monitor/volume_mount_watcher_win.cc b/components/storage_monitor/volume_mount_watcher_win.cc
index 168d2eb14dea19b21c28d6fd932dd62955dcce2c..72ca3b2b1b4d80432f519ac092671eed356395eb 100644
--- a/components/storage_monitor/volume_mount_watcher_win.cc
+++ b/components/storage_monitor/volume_mount_watcher_win.cc
@@ -5,6 +5,8 @@
#include "components/storage_monitor/volume_mount_watcher_win.h"
#include <windows.h>
+#include <stddef.h>
+#include <stdint.h>
#include <dbt.h>
#include <fileapi.h>
@@ -93,7 +95,7 @@ DeviceType GetDeviceType(const base::string16& mount_point) {
}
// Returns 0 if the devicetype is not volume.
-uint32 GetVolumeBitMaskFromBroadcastHeader(LPARAM data) {
+uint32_t GetVolumeBitMaskFromBroadcastHeader(LPARAM data) {
DEV_BROADCAST_VOLUME* dev_broadcast_volume =
reinterpret_cast<DEV_BROADCAST_VOLUME*>(data);
if (dev_broadcast_volume->dbcv_devicetype == DBT_DEVTYP_VOLUME)
@@ -110,7 +112,7 @@ bool IsLogicalVolumeStructure(LPARAM data) {
}
// Gets the total volume of the |mount_point| in bytes.
-uint64 GetVolumeSize(const base::string16& mount_point) {
+uint64_t GetVolumeSize(const base::string16& mount_point) {
ULARGE_INTEGER total;
if (!GetDiskFreeSpaceExW(mount_point.c_str(), NULL, &total, NULL))
return 0;
@@ -172,7 +174,7 @@ bool GetDeviceDetails(const base::FilePath& device_path, StorageInfo* info) {
base::WriteInto(&volume_label, kMaxPathBufLen),
kMaxPathBufLen, NULL, NULL, NULL, NULL, 0);
- uint64 total_size_in_bytes = GetVolumeSize(mount_point);
+ uint64_t total_size_in_bytes = GetVolumeSize(mount_point);
std::string device_id =
StorageInfo::MakeDeviceId(type, base::UTF16ToUTF8(guid));
« no previous file with comments | « components/storage_monitor/volume_mount_watcher_win.h ('k') | components/suggestions/blacklist_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698