Index: content/browser/power_save_blocker_win.cc |
diff --git a/content/browser/power_save_blocker_win.cc b/content/browser/power_save_blocker_win.cc |
index 727600dff145afc858a3acd5f816a6f8562b6456..4cbecf4447a8957bd066e83dc43f376b32f766f0 100644 |
--- a/content/browser/power_save_blocker_win.cc |
+++ b/content/browser/power_save_blocker_win.cc |
@@ -49,7 +49,7 @@ HANDLE CreatePowerRequest(POWER_REQUEST_TYPE type, const std::string& reason) { |
if (!handle.IsValid()) |
return INVALID_HANDLE_VALUE; |
- if (PowerSetRequestFn(handle, type)) |
+ if (PowerSetRequestFn(handle.Get(), type)) |
return handle.Take(); |
// Something went wrong. |
@@ -76,7 +76,7 @@ void DeletePowerRequest(POWER_REQUEST_TYPE type, HANDLE handle) { |
if (!PowerClearRequestFn) |
return; |
- BOOL success = PowerClearRequestFn(request_handle, type); |
+ BOOL success = PowerClearRequestFn(request_handle.Get(), type); |
DCHECK(success); |
} |