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

Unified Diff: device/usb/usb_device_handle_impl.cc

Issue 780713002: Fix remaining WeakPtrFactory ordering problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove flag change, merge Created 6 years 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/usb/usb_device_handle_impl.cc
diff --git a/device/usb/usb_device_handle_impl.cc b/device/usb/usb_device_handle_impl.cc
index eb12542164ff8d67c28b80bbf1c0c710b8f5e311..587bbc66d8e1df0fe8d963eead818a603258ea65 100644
--- a/device/usb/usb_device_handle_impl.cc
+++ b/device/usb/usb_device_handle_impl.cc
@@ -479,8 +479,8 @@ UsbDeviceHandleImpl::UsbDeviceHandleImpl(scoped_refptr<UsbContext> context,
handle_(handle),
config_(config),
context_(context),
- weak_factory_(this),
- task_runner_(base::ThreadTaskRunnerHandle::Get()) {
+ task_runner_(base::ThreadTaskRunnerHandle::Get()),
+ weak_factory_(this) {
DCHECK(handle) << "Cannot create device with NULL handle.";
}

Powered by Google App Engine
This is Rietveld 408576698