summaryrefslogtreecommitdiffstats
path: root/chrome/browser/intents
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 23:38:01 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 23:38:01 +0000
commit1a39d73e551b07893d3b7cecb3ef3ac4871d105b (patch)
tree10fb4e8a0805491d8a4b5a1a9ec98024d1e373db /chrome/browser/intents
parentb785cd36336aac3fc41402066a28363b02bcde0d (diff)
downloadchromium_src-1a39d73e551b07893d3b7cecb3ef3ac4871d105b.zip
chromium_src-1a39d73e551b07893d3b7cecb3ef3ac4871d105b.tar.gz
chromium_src-1a39d73e551b07893d3b7cecb3ef3ac4871d105b.tar.bz2
Connect MediaFileSystemRegistry with MediaGalleriesPreferences
Refactor MediaFileSystemRegistry to make state easier to manage and connect the extension preferences to the registry. Review URL: https://chromiumcodereview.appspot.com/10871049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155534 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/intents')
-rw-r--r--chrome/browser/intents/device_attached_intent_source.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/intents/device_attached_intent_source.cc b/chrome/browser/intents/device_attached_intent_source.cc
index 60b9666..0f0244a 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));