summaryrefslogtreecommitdiffstats
path: root/chrome/browser/intents
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-05 16:44:01 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-05 16:44:01 +0000
commit804f709fa3ae794c6557a6d357153291f333a911 (patch)
tree0f294f906aa9593bff5133796f84877477bf8fb6 /chrome/browser/intents
parentb20a0244044e8eabc5010531f8c7abfb489e8796 (diff)
downloadchromium_src-804f709fa3ae794c6557a6d357153291f333a911.zip
chromium_src-804f709fa3ae794c6557a6d357153291f333a911.tar.gz
chromium_src-804f709fa3ae794c6557a6d357153291f333a911.tar.bz2
Set media device name as isolated file system name.
While registering the attached device path as file system, set the media device name as file system name. BUG=none TEST=none TBR=gbillock@chromium.org Review URL: https://chromiumcodereview.appspot.com/10824170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150049 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/intents')
-rw-r--r--chrome/browser/intents/device_attached_intent_source.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/intents/device_attached_intent_source.cc b/chrome/browser/intents/device_attached_intent_source.cc
index 1526606..344a113 100644
--- a/chrome/browser/intents/device_attached_intent_source.cc
+++ b/chrome/browser/intents/device_attached_intent_source.cc
@@ -62,7 +62,7 @@ void DeviceAttachedIntentSource::OnMediaDeviceAttached(
SystemMonitor::MediaDeviceInfo device_info(id, name, type, location);
device_id_map_.insert(std::make_pair(id, device_info));
- std::string device_name;
+ std::string device_name(UTF16ToUTF8(name));
// Register device path as an isolated file system.
// TODO(kinuko, kmadhusu): Use a different file system type for MTP.