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

Unified Diff: chrome/browser/intents/device_attached_intent_source.cc

Issue 10871049: Connect MediaFileSystemRegistry with MediaGalleriesPreferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win - use after free Created 8 years, 3 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/intents/device_attached_intent_source.cc
diff --git a/chrome/browser/intents/device_attached_intent_source.cc b/chrome/browser/intents/device_attached_intent_source.cc
index 60b96665a9d6379d039b72d7a0b3ecdacb1cd23e..0f0244acfda3afd7f12221032ddf3727728bff7f 100644
--- a/chrome/browser/intents/device_attached_intent_source.cc
+++ b/chrome/browser/intents/device_attached_intent_source.cc
@@ -102,9 +102,7 @@ void DeviceAttachedIntentSource::OnRemovableStorageAttached(
// Only handle mass storage for now.
// TODO(kmadhusu): Handle all device types. http://crbug.com/140353.
- MediaStorageUtil::Type type;
- MediaStorageUtil::CrackDeviceId(id, &type, NULL);
- if (type == MediaStorageUtil::MTP_OR_PTP)
+ if (!MediaStorageUtil::IsMassStorageDevice(id))
return;
DCHECK(MediaStorageUtil::IsRemovableDevice(id));

Powered by Google App Engine
This is Rietveld 408576698