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

Side by Side Diff: extensions/browser/api/extensions_api_client.cc

Issue 419713002: Support permission_broker for chrome.hid devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix hid in app_shell after its move to //extensions Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/browser/api/extensions_api_client.h ('k') | extensions/browser/api/hid/hid_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/api/extensions_api_client.h" 5 #include "extensions/browser/api/extensions_api_client.h"
6 6
7 #include "base/logging.h"
8
7 namespace extensions { 9 namespace extensions {
8 namespace { 10 namespace {
9 11
10 ExtensionsAPIClient* g_instance = NULL; 12 ExtensionsAPIClient* g_instance = NULL;
11 13
12 } // namespace 14 } // namespace
13 15
14 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; } 16 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; }
15 17
16 ExtensionsAPIClient::~ExtensionsAPIClient() { g_instance = NULL; } 18 ExtensionsAPIClient::~ExtensionsAPIClient() { g_instance = NULL; }
(...skipping 15 matching lines...) Expand all
32 return false; 34 return false;
33 } 35 }
34 36
35 bool ExtensionsAPIClient::AppViewInternalDenyRequest( 37 bool ExtensionsAPIClient::AppViewInternalDenyRequest(
36 content::BrowserContext* browser_context, 38 content::BrowserContext* browser_context,
37 int guest_instance_id, 39 int guest_instance_id,
38 const std::string& guest_extension_id) { 40 const std::string& guest_extension_id) {
39 return false; 41 return false;
40 } 42 }
41 43
44 device::HidService* ExtensionsAPIClient::GetHidService() {
45 // This should never be called by clients which don't support the HID API.
46 NOTIMPLEMENTED();
47 return NULL;
48 }
49
42 } // namespace extensions 50 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/extensions_api_client.h ('k') | extensions/browser/api/hid/hid_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698