Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / shell / browser / api / shell_extensions_api_client.cc
bloba8e7d1118e0f0237866d3487563792aa28a47052
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/shell/browser/api/shell_extensions_api_client.h"
7 #include "content/public/browser/browser_thread.h"
8 #include "device/hid/hid_service.h"
10 namespace extensions {
12 ShellExtensionsAPIClient::ShellExtensionsAPIClient() {
15 ShellExtensionsAPIClient::~ShellExtensionsAPIClient() {
18 device::HidService* ShellExtensionsAPIClient::GetHidService() {
19 if (!hid_service_) {
20 hid_service_.reset(device::HidService::Create(
21 content::BrowserThread::GetMessageLoopProxyForThread(
22 content::BrowserThread::UI)));
24 return hid_service_.get();
27 } // namespace extensions