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

Unified Diff: extensions/shell/browser/api/shell_extensions_api_client.cc

Issue 514493004: Revert of Adding Select Action Bar Unit test case for input (patchset #3 of https://codereview.chro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copying Created 6 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
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

Powered by Google App Engine
This is Rietveld 408576698