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

Unified Diff: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm

Issue 982283002: Implement DeleteFile and DeleteDirectory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 9 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
Index: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm
diff --git a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm
index a8781bcceca3c99335739b8d02e490f862c8860e..a0f48abe8f45f028e372b79bd9e6c1abcee07298 100644
--- a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm
+++ b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm
@@ -209,7 +209,7 @@ void MTPDeviceDelegateImplMac::ReadBytes(
NOTREACHED();
}
-bool MTPDeviceDelegateImplMac::IsReadOnly() {
+bool MTPDeviceDelegateImplMac::IsReadOnly() const {
return true;
}
@@ -221,6 +221,20 @@ void MTPDeviceDelegateImplMac::CopyFileFromLocal(
NOTREACHED();
}
+void MTPDeviceDelegateImplMac::DeleteFile(
+ const base::FilePath& file_path,
+ const DeleteFileSuccessCallback& success_callback,
+ const ErrorCallback& error_callback) {
+ NOTREACHED();
+}
+
+void MTPDeviceDelegateImplMac::DeleteDirectory(
+ const base::FilePath& file_path,
+ const DeleteDirectorySuccessCallback& success_callback,
+ const ErrorCallback& error_callback) {
+ NOTREACHED();
+}
+
void MTPDeviceDelegateImplMac::CancelPendingTasksAndDeleteDelegate() {
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
base::Bind(&MTPDeviceDelegateImplMac::CancelAndDelete,

Powered by Google App Engine
This is Rietveld 408576698