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

Unified Diff: chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc

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/win/mtp_device_delegate_impl_win.cc
diff --git a/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc b/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
index 5f1234c675e190bda361cbd844c221bc085212ef..81c15b23e20f4c28274005206e4e7a09d03f6c35 100644
--- a/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
+++ b/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc
@@ -461,7 +461,7 @@ void MTPDeviceDelegateImplWin::ReadBytes(
NOTREACHED();
}
-bool MTPDeviceDelegateImplWin::IsReadOnly() {
+bool MTPDeviceDelegateImplWin::IsReadOnly() const {
return true;
}
@@ -473,6 +473,20 @@ void MTPDeviceDelegateImplWin::CopyFileFromLocal(
NOTREACHED();
}
+void MTPDeviceDelegateImplWin::DeleteFile(
+ const base::FilePath& file_path,
+ const DeleteFileSuccessCallback& success_callback,
+ const ErrorCallback& error_callback) {
+ NOTREACHED();
+}
+
+void MTPDeviceDelegateImplWin::DeleteDirectory(
+ const base::FilePath& file_path,
+ const DeleteDirectorySuccessCallback& success_callback,
+ const ErrorCallback& error_callback) {
+ NOTREACHED();
+}
+
void MTPDeviceDelegateImplWin::CancelPendingTasksAndDeleteDelegate() {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
PortableDeviceMapService::GetInstance()->MarkPortableDeviceForDeletion(

Powered by Google App Engine
This is Rietveld 408576698