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

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

Issue 10876093: Improve the device type constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_device_notifications_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 08b7131c0d42cb5ad4be6c08614b322c7efae882..7f874e7f40befebdcb04504d3b266e450c889ed0 100644
--- a/chrome/browser/intents/device_attached_intent_source.cc
+++ b/chrome/browser/intents/device_attached_intent_source.cc
@@ -104,7 +104,7 @@ void DeviceAttachedIntentSource::OnRemovableStorageAttached(
// TODO(kmadhusu): Handle all device types. http://crbug.com/140353.
MediaStorageUtil::Type type;
MediaStorageUtil::CrackDeviceId(id, &type, NULL);
- if (type == MediaStorageUtil::USB_MTP)
+ if (type == MediaStorageUtil::MTP_OR_PTP)
return;
DCHECK(MediaStorageUtil::IsRemovableDevice(id));
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_device_notifications_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698