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

Unified Diff: extensions/browser/api/hid/hid_device_manager.h

Issue 604843003: Check that extensions::HidDeviceManager is used from the FILE thread. (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 | extensions/browser/api/hid/hid_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/hid/hid_device_manager.h
diff --git a/extensions/browser/api/hid/hid_device_manager.h b/extensions/browser/api/hid/hid_device_manager.h
index f204269f4afaa3bf80535f4bc5849a94915c5df4..7edfd23e1baace38004ffeeef4460a57db75d868 100644
--- a/extensions/browser/api/hid/hid_device_manager.h
+++ b/extensions/browser/api/hid/hid_device_manager.h
@@ -51,11 +51,10 @@ class HidDeviceManager : public BrowserContextKeyedAPI {
friend class BrowserContextKeyedAPIFactory<HidDeviceManager>;
static const char* service_name() { return "HidDeviceManager"; }
+ static bool IsCalledOnValidThread();
void UpdateDevices();
- base::ThreadChecker thread_checker_;
-
int next_resource_id_;
typedef std::map<int, device::HidDeviceId> ResourceIdToDeviceIdMap;
« no previous file with comments | « no previous file | extensions/browser/api/hid/hid_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698