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

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
diff --git a/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc b/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
index 6941878f69c33e8a1711cfa7292fb9c98103a952..16d8f5763b51784192351df261505ac9d87b8443 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
+++ b/chrome/browser/media_galleries/fileapi/mtp_device_map_service.cc
@@ -28,6 +28,10 @@ void MTPDeviceMapService::RegisterMTPFileSystem(
const base::FilePath::StringType& device_location,
const std::string& filesystem_id,
const bool read_only) {
+#if defined(OS_ANDROID)
+ // No CreateMTPDeviceAsyncDelegate implementation
+ NOTIMPLEMENTED();
+#else
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
DCHECK(!device_location.empty());
DCHECK(!filesystem_id.empty());
@@ -46,10 +50,15 @@ void MTPDeviceMapService::RegisterMTPFileSystem(
mtp_device_usage_map_[key]++;
mtp_device_map_[filesystem_id] = make_pair(device_location, read_only);
+#endif
}
void MTPDeviceMapService::RevokeMTPFileSystem(
const std::string& filesystem_id) {
+#if defined(OS_ANDROID)
+ // No RemoveAsyncDelegate implementation
+ NOTIMPLEMENTED();
+#else
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
DCHECK(!filesystem_id.empty());
@@ -71,6 +80,7 @@ void MTPDeviceMapService::RevokeMTPFileSystem(
RemoveAsyncDelegate(device_location, read_only);
}
}
+#endif
}
void MTPDeviceMapService::AddAsyncDelegate(

Powered by Google App Engine
This is Rietveld 408576698