Check that extensions::HidDeviceManager is used from the FILE thread.
commitea245886e3af507367cae1d9d766755f4384d588
authorreillyg <reillyg@chromium.org>
Fri, 26 Sep 2014 19:56:33 +0000 (26 12:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Sep 2014 19:56:51 +0000 (26 19:56 +0000)
tree84369def2383792c8e3a13ff08f5ac8bd72e6771
parent49b3bcbf156374455c16f36055b7d1546d77a664
Check that extensions::HidDeviceManager is used from the FILE thread.

Commit 7fb8b9950 attempted to enable an unused thread check in
extensions::HidDeviceManager but this was not correct because while this
class is normally used from the FILE thread this is not where it is
created (issue 417939). This change adopts the pattern used in
extensions::ApiResourceManager where the BrowserContextKeyedAPI
implements its own thread assertions.

BUG=

Review URL: https://codereview.chromium.org/604843003

Cr-Commit-Position: refs/heads/master@{#297013}
extensions/browser/api/hid/hid_device_manager.cc
extensions/browser/api/hid/hid_device_manager.h