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

Unified Diff: extensions/browser/api/serial/serial_service_factory.cc

Issue 2410743002: Remove the mojo serial interfaces and related infrastructure. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/api/serial/serial_service_factory.h ('k') | extensions/browser/mojo/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/serial/serial_service_factory.cc
diff --git a/extensions/browser/api/serial/serial_service_factory.cc b/extensions/browser/api/serial/serial_service_factory.cc
deleted file mode 100644
index 0094ab8df372feb3c9d832e27c118a58d156c8ab..0000000000000000000000000000000000000000
--- a/extensions/browser/api/serial/serial_service_factory.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 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/browser/api/serial/serial_service_factory.h"
-
-#include <utility>
-
-#include "content/public/browser/browser_thread.h"
-#include "device/serial/serial_service_impl.h"
-
-namespace extensions {
-namespace {
-const base::Callback<void(
- mojo::InterfaceRequest<device::serial::SerialService>)>*
- g_serial_service_test_factory = nullptr;
-}
-
-void BindToSerialServiceRequest(
- mojo::InterfaceRequest<device::serial::SerialService> request) {
- if (g_serial_service_test_factory) {
- g_serial_service_test_factory->Run(std::move(request));
- return;
- }
- device::SerialServiceImpl::CreateOnMessageLoop(
- content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::FILE),
- content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::IO),
- content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::UI),
- std::move(request));
-}
-
-void SetSerialServiceFactoryForTest(const base::Callback<
- void(mojo::InterfaceRequest<device::serial::SerialService>)>* callback) {
- g_serial_service_test_factory = callback;
-}
-
-} // namespace extensions
« no previous file with comments | « extensions/browser/api/serial/serial_service_factory.h ('k') | extensions/browser/mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698