diff options
author | mfomitchev <mfomitchev@chromium.org> | 2016-01-28 08:46:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-28 16:47:16 +0000 |
commit | 12b8eae75903716455b44d2c25236e183cebbeb7 (patch) | |
tree | 2d3299aad482456e6f78c285dc5cc390de9a6af6 /extensions | |
parent | cf82bf409d647e793c5c60aeb3dbf9f4aa13ced7 (diff) | |
download | chromium_src-12b8eae75903716455b44d2c25236e183cebbeb7.zip chromium_src-12b8eae75903716455b44d2c25236e183cebbeb7.tar.gz chromium_src-12b8eae75903716455b44d2c25236e183cebbeb7.tar.bz2 |
Remove the code added to make extensions compile on Aura Android.
BUG=NONE
Review URL: https://codereview.chromium.org/1551423003
Cr-Commit-Position: refs/heads/master@{#372106}
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/browser/api/serial/serial_api.cc | 3 | ||||
-rw-r--r-- | extensions/browser/guest_view/web_view/web_view_guest.cc | 3 | ||||
-rw-r--r-- | extensions/common/BUILD.gn | 9 | ||||
-rw-r--r-- | extensions/common/api/printer_provider/usb_printer_manifest_handler_android.cc | 26 | ||||
-rw-r--r-- | extensions/extensions.gypi | 1 |
5 files changed, 0 insertions, 42 deletions
diff --git a/extensions/browser/api/serial/serial_api.cc b/extensions/browser/api/serial/serial_api.cc index d80008e4..0d477be 100644 --- a/extensions/browser/api/serial/serial_api.cc +++ b/extensions/browser/api/serial/serial_api.cc @@ -86,14 +86,11 @@ bool SerialGetDevicesFunction::Prepare() { void SerialGetDevicesFunction::Work() { DCHECK_CURRENTLY_ON(BrowserThread::FILE); -// TODO(moshayedi): crbug.com/549257. Add USB support for Aura on Android. -#if !defined(OS_ANDROID) scoped_ptr<device::SerialDeviceEnumerator> enumerator = device::SerialDeviceEnumerator::Create(); mojo::Array<device::serial::DeviceInfoPtr> devices = enumerator->GetDevices(); results_ = serial::GetDevices::Results::Create( devices.To<std::vector<linked_ptr<serial::DeviceInfo> > >()); -#endif } SerialConnectFunction::SerialConnectFunction() { diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc index 1b146fa..d692e02 100644 --- a/extensions/browser/guest_view/web_view/web_view_guest.cc +++ b/extensions/browser/guest_view/web_view/web_view_guest.cc @@ -134,9 +134,6 @@ static std::string TerminationStatusToString(base::TerminationStatus status) { #endif case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: return "killed"; -#if defined(OS_ANDROID) - case base::TERMINATION_STATUS_OOM_PROTECTED: -#endif case base::TERMINATION_STATUS_PROCESS_CRASHED: return "crashed"; case base::TERMINATION_STATUS_LAUNCH_FAILED: diff --git a/extensions/common/BUILD.gn b/extensions/common/BUILD.gn index 4f5496a..b0f40b5 100644 --- a/extensions/common/BUILD.gn +++ b/extensions/common/BUILD.gn @@ -71,15 +71,6 @@ if (enable_extensions) { "//url", ] - if (is_android) { - deps -= [ "//device/usb" ] - sources -= [ - "api/printer_provider/usb_printer_manifest_data.cc", - "api/printer_provider/usb_printer_manifest_data.h", - "api/printer_provider/usb_printer_manifest_handler.cc", - ] - } - if (enable_nacl) { nacl_sources = rebase_path(extensions_gypi_values.extensions_common_sources_nacl, diff --git a/extensions/common/api/printer_provider/usb_printer_manifest_handler_android.cc b/extensions/common/api/printer_provider/usb_printer_manifest_handler_android.cc deleted file mode 100644 index 88861c4..0000000 --- a/extensions/common/api/printer_provider/usb_printer_manifest_handler_android.cc +++ /dev/null @@ -1,26 +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/common/api/printer_provider/usb_printer_manifest_handler.h" - -#include "extensions/common/extension.h" - -namespace extensions { - -UsbPrinterManifestHandler::UsbPrinterManifestHandler() { -} - -UsbPrinterManifestHandler::~UsbPrinterManifestHandler() { -} - -bool UsbPrinterManifestHandler::Parse(Extension* extension, - base::string16* error) { - return false; -} - -const std::vector<std::string> UsbPrinterManifestHandler::Keys() const { - return std::vector<std::string>(); -} - -} // namespace extensions diff --git a/extensions/extensions.gypi b/extensions/extensions.gypi index 6049ecb..9128d49 100644 --- a/extensions/extensions.gypi +++ b/extensions/extensions.gypi @@ -30,7 +30,6 @@ 'common/api/printer_provider/usb_printer_manifest_data.cc', 'common/api/printer_provider/usb_printer_manifest_data.h', 'common/api/printer_provider/usb_printer_manifest_handler.cc', - 'common/api/printer_provider/usb_printer_manifest_handler_android.cc', 'common/api/printer_provider/usb_printer_manifest_handler.h', 'common/api/sockets/sockets_manifest_data.cc', 'common/api/sockets/sockets_manifest_data.h', |