Commit 5010e358 authored by mohsen's avatar mohsen Committed by Commit bot

Make chrome/browser/media_galleries compile on Android

This is to allow compiling Chrome for Android with use_aura=1.

BUG=507792

Review URL: https://codereview.chromium.org/1467373002

Cr-Commit-Position: refs/heads/master@{#361273}
parent 82b5c239
// 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 "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
void CreateMTPDeviceAsyncDelegate(
const std::string& device_location,
const bool read_only,
const CreateMTPDeviceAsyncDelegateCallback& callback) {
// Return nullptr as there is no MTPDeviceAsyncDelegate implementation for
// Chrome on Android at the moment.
// TODO(crbug.com/560390): Add an MTPDeviceAsyncDelegate implementation on
// Android.
NOTIMPLEMENTED();
callback.Run(nullptr);
}
......@@ -56,6 +56,9 @@ const int kPrunedPaths[] = {
#if defined(OS_WIN) || defined(OS_LINUX)
base::DIR_TEMP,
#endif
#if defined(OS_ANDROID)
base::DIR_ANDROID_APP_DATA,
#endif
};
bool IsValidScanPath(const base::FilePath& path) {
......
......@@ -1144,6 +1144,7 @@
'browser/importer/profile_writer.h',
'browser/lifetime/browser_close_manager.cc',
'browser/lifetime/browser_close_manager.h',
'browser/media_galleries/android/mtp_device_delegate_impl_android.cc',
'browser/media_galleries/fileapi/av_scanning_file_validator.cc',
'browser/media_galleries/fileapi/av_scanning_file_validator.h',
'browser/media_galleries/fileapi/device_media_async_file_util.cc',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment