Index: extensions/shell/browser/api/shell_extensions_api_client.cc |
diff --git a/extensions/shell/browser/api/shell_extensions_api_client.cc b/extensions/shell/browser/api/shell_extensions_api_client.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a8e7d1118e0f0237866d3487563792aa28a47052 |
--- /dev/null |
+++ b/extensions/shell/browser/api/shell_extensions_api_client.cc |
@@ -0,0 +1,27 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "extensions/shell/browser/api/shell_extensions_api_client.h" |
+ |
+#include "content/public/browser/browser_thread.h" |
+#include "device/hid/hid_service.h" |
+ |
+namespace extensions { |
+ |
+ShellExtensionsAPIClient::ShellExtensionsAPIClient() { |
+} |
+ |
+ShellExtensionsAPIClient::~ShellExtensionsAPIClient() { |
+} |
+ |
+device::HidService* ShellExtensionsAPIClient::GetHidService() { |
+ if (!hid_service_) { |
+ hid_service_.reset(device::HidService::Create( |
+ content::BrowserThread::GetMessageLoopProxyForThread( |
+ content::BrowserThread::UI))); |
+ } |
+ return hid_service_.get(); |
+} |
+ |
+} // namespace extensions |