summaryrefslogtreecommitdiffstats
path: root/extensions/shell/browser/api/shell_extensions_api_client.cc
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2014-09-05 01:02:44 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-05 08:05:55 +0000
commit1a51b92b7038b82a90c1a1944104eaf8c51a9e1c (patch)
tree9dde79f2e12d64897300d2c389725ab4d349f01f /extensions/shell/browser/api/shell_extensions_api_client.cc
parent243eec86f415a6624d8d41b0ea0393eda0b3a808 (diff)
downloadchromium_src-1a51b92b7038b82a90c1a1944104eaf8c51a9e1c.zip
chromium_src-1a51b92b7038b82a90c1a1944104eaf8c51a9e1c.tar.gz
chromium_src-1a51b92b7038b82a90c1a1944104eaf8c51a9e1c.tar.bz2
Fix HidService lifetime issues
This reverts HidService to being a singleton instance for now. BUG=401234 TBR=rpaquay Review URL: https://codereview.chromium.org/523743005 Cr-Commit-Position: refs/heads/master@{#293464}
Diffstat (limited to 'extensions/shell/browser/api/shell_extensions_api_client.cc')
-rw-r--r--extensions/shell/browser/api/shell_extensions_api_client.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/extensions/shell/browser/api/shell_extensions_api_client.cc b/extensions/shell/browser/api/shell_extensions_api_client.cc
deleted file mode 100644
index a8e7d11..0000000
--- a/extensions/shell/browser/api/shell_extensions_api_client.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// 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