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

Side by Side Diff: components/webusb/webusb_browser_client.cc

Issue 1289423002: Add webusb notification UI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated code so that Chrome browser process owns WebUsbBrowserClient and WebUsbDetector objects Created 5 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2015 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.
4
5 #include "components/webusb/webusb_browser_client.h"
6
7 namespace webusb {
8
9 namespace {
10
11 WebUsbBrowserClient* webusb_browser_client = nullptr;
12
13 } // namespace
14
15 WebUsbBrowserClient* WebUsbBrowserClient::Get() {
16 return webusb_browser_client;
17 }
18
19 void WebUsbBrowserClient::Set(WebUsbBrowserClient* client) {
20 webusb_browser_client = client;
21 }
22
23 } // namespace webusb
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698