| 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));
|
|
|
|
|