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

Side by Side Diff: chrome/browser/media_galleries/chromeos/mtp_read_file_worker.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_read_file_worker.h" 5 #include "chrome/browser/media_galleries/chromeos/mtp_read_file_worker.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/numerics/safe_conversions.h" 13 #include "base/numerics/safe_conversions.h"
14 #include "chrome/browser/media_galleries/linux/snapshot_file_details.h" 14 #include "chrome/browser/media_galleries/chromeos/snapshot_file_details.h"
15 #include "components/storage_monitor/storage_monitor.h" 15 #include "components/storage_monitor/storage_monitor.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 17 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
18 #include "third_party/cros_system_api/dbus/service_constants.h" 18 #include "third_party/cros_system_api/dbus/service_constants.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 using storage_monitor::StorageMonitor; 21 using storage_monitor::StorageMonitor;
22 22
23 namespace { 23 namespace {
24 24
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 base::File::FILE_ERROR_FAILED)); 132 base::File::FILE_ERROR_FAILED));
133 return; 133 return;
134 } 134 }
135 content::BrowserThread::PostTask( 135 content::BrowserThread::PostTask(
136 content::BrowserThread::IO, 136 content::BrowserThread::IO,
137 FROM_HERE, 137 FROM_HERE,
138 base::Bind(snapshot_file_details->success_callback(), 138 base::Bind(snapshot_file_details->success_callback(),
139 snapshot_file_details->file_info(), 139 snapshot_file_details->file_info(),
140 snapshot_file_details->snapshot_file_path())); 140 snapshot_file_details->snapshot_file_path()));
141 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698