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

Unified Diff: device/test/usb_test_gadget_impl.cc

Issue 651253002: Enforce handle ownership in base::Process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add empty line Created 6 years, 2 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: device/test/usb_test_gadget_impl.cc
diff --git a/device/test/usb_test_gadget_impl.cc b/device/test/usb_test_gadget_impl.cc
index e7ae97cfbc42940acb73356e85e51d3e9ec5bbcc..56a4ac92a8d15578892a22205aa07e3b9543f88b 100644
--- a/device/test/usb_test_gadget_impl.cc
+++ b/device/test/usb_test_gadget_impl.cc
@@ -16,7 +16,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
-#include "base/process/process.h"
+#include "base/process/process_handle.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
@@ -149,7 +149,7 @@ UsbTestGadgetImpl::UsbTestGadgetImpl() {
context_builder.set_proxy_service(net::ProxyService::CreateDirect());
request_context_.reset(context_builder.Build());
- base::ProcessId process_id = base::Process::Current().pid();
+ base::ProcessId process_id = base::GetCurrentProcId();
session_id_ = base::StringPrintf(
"%s:%p", base::HexEncode(&process_id, sizeof(process_id)).c_str(), this);
« no previous file with comments | « content/renderer/media/android/stream_texture_factory_synchronous_impl.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698