summaryrefslogtreecommitdiffstats
path: root/extensions/shell/browser/api/shell_extensions_api_client.cc
blob: a8e7d1118e0f0237866d3487563792aa28a47052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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