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

Unified Diff: content/common/sandbox_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
Index: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index 496238929b789a92d7b15b5496955e2cfae9e694..c311dfd234d585c2ab426890d1e453d97b604657 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -481,7 +481,7 @@ BOOL WINAPI DuplicateHandlePatch(HANDLE source_process_handle,
PROCESS_QUERY_INFORMATION,
FALSE, 0));
base::win::ScopedHandle process(temp_handle);
- CHECK(::IsProcessInJob(process, NULL, &is_in_job));
+ CHECK(::IsProcessInJob(process.Get(), NULL, &is_in_job));
}
}
@@ -497,7 +497,7 @@ BOOL WINAPI DuplicateHandlePatch(HANDLE source_process_handle,
base::win::ScopedHandle handle(temp_handle);
// Callers use CHECK macro to make sure we get the right stack.
- CheckDuplicateHandle(handle);
+ CheckDuplicateHandle(handle.Get());
}
return TRUE;
@@ -784,7 +784,7 @@ bool BrokerDuplicateHandle(HANDLE source_handle,
target_process_id));
if (target_process.IsValid()) {
return !!::DuplicateHandle(::GetCurrentProcess(), source_handle,
- target_process, target_handle,
+ target_process.Get(), target_handle,
desired_access, FALSE, options);
}
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_truetype_font_win.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698