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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.cc

Issue 10876093: Improve the device type constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_gallery/media_file_system_registry.cc
diff --git a/chrome/browser/media_gallery/media_file_system_registry.cc b/chrome/browser/media_gallery/media_file_system_registry.cc
index c77ec3cc50865319256ef92f320f22881fad4dd6..ac08ecfbdecc54622bf38845ac4f78c128743dc5 100644
--- a/chrome/browser/media_gallery/media_file_system_registry.cc
+++ b/chrome/browser/media_gallery/media_file_system_registry.cc
@@ -95,7 +95,7 @@ MediaFileSystemRegistry::GetMediaFileSystemsForExtension(
MediaStorageUtil::Type type;
MediaStorageUtil::CrackDeviceId(media_devices[i].device_id, &type, NULL);
// TODO(vandebo) Handle MTP devices.
- if (type != MediaStorageUtil::USB_MTP &&
+ if (type != MediaStorageUtil::MTP_OR_PTP &&
IsGalleryPermittedForExtension(extension, media_devices[i].location)) {
device_id_map_.insert(std::make_pair(media_devices[i].device_id,
media_devices[i]));

Powered by Google App Engine
This is Rietveld 408576698