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

Unified Diff: content/browser/power_save_blocker_win.cc

Issue 606463002: Remove implicit HANDLE conversions from content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 | « no previous file | content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698