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

Side by Side Diff: chrome/browser/media_galleries/chromeos/mtp_device_task_helper.cc

Issue 2358493002: Remove MTP support on Linux. (Closed)
Patch Set: move files 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/media_galleries/linux/mtp_device_task_helper.h" 5 #include "chrome/browser/media_galleries/chromeos/mtp_device_task_helper.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" 11 #include "chrome/browser/media_galleries/chromeos/mtp_device_object_enumerator.h "
12 #include "chrome/browser/media_galleries/linux/mtp_read_file_worker.h" 12 #include "chrome/browser/media_galleries/chromeos/mtp_read_file_worker.h"
13 #include "chrome/browser/media_galleries/linux/snapshot_file_details.h" 13 #include "chrome/browser/media_galleries/chromeos/snapshot_file_details.h"
14 #include "components/storage_monitor/storage_monitor.h" 14 #include "components/storage_monitor/storage_monitor.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 16 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
17 #include "net/base/io_buffer.h" 17 #include "net/base/io_buffer.h"
18 #include "storage/browser/fileapi/async_file_util.h" 18 #include "storage/browser/fileapi/async_file_util.h"
19 #include "storage/common/fileapi/file_system_util.h" 19 #include "storage/common/fileapi/file_system_util.h"
20 #include "third_party/cros_system_api/dbus/service_constants.h" 20 #include "third_party/cros_system_api/dbus/service_constants.h"
21 21
22 using storage_monitor::StorageMonitor; 22 using storage_monitor::StorageMonitor;
23 23
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 } 390 }
391 391
392 void MTPDeviceTaskHelper::HandleDeviceError( 392 void MTPDeviceTaskHelper::HandleDeviceError(
393 const ErrorCallback& error_callback, 393 const ErrorCallback& error_callback,
394 base::File::Error error) const { 394 base::File::Error error) const {
395 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 395 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
396 content::BrowserThread::PostTask(content::BrowserThread::IO, 396 content::BrowserThread::PostTask(content::BrowserThread::IO,
397 FROM_HERE, 397 FROM_HERE,
398 base::Bind(error_callback, error)); 398 base::Bind(error_callback, error));
399 } 399 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698