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

Unified Diff: device/usb/usb_context.h

Issue 1281373002: Remove "delete this" pattern from UsbContext completely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make UsbEventHandler a SimpleThread. Created 5 years, 4 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 | device/usb/usb_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_context.h
diff --git a/device/usb/usb_context.h b/device/usb/usb_context.h
index b628b4bfafb01d55828c823167d22aa7088a1ddf..67ae11c588b11c330a75921b83930090c1c413b2 100644
--- a/device/usb/usb_context.h
+++ b/device/usb/usb_context.h
@@ -33,8 +33,9 @@ class UsbContext : public base::RefCountedThreadSafe<UsbContext> {
private:
class UsbEventHandler;
+
PlatformUsbContext context_;
- UsbEventHandler* event_handler_;
+ scoped_ptr<UsbEventHandler> event_handler_;
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(UsbContext);
« no previous file with comments | « no previous file | device/usb/usb_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698