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 f897ca064646503c7162c5808931abd833f2fdfc..9c3ea893b9a28dfec60eac49c2042db6c6eb3457 100644 |
--- a/chrome/browser/intents/device_attached_intent_source.cc |
+++ b/chrome/browser/intents/device_attached_intent_source.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/ui/browser_window.h" |
#include "content/public/browser/web_intents_dispatcher.h" |
#include "content/public/browser/web_contents_delegate.h" |
+#include "webkit/fileapi/file_system_types.h" |
#include "webkit/fileapi/isolated_context.h" |
#include "webkit/glue/web_intent_data.h" |
@@ -45,9 +46,10 @@ void DeviceAttachedIntentSource::OnMediaDeviceAttached( |
std::string device_name; |
// Register device path as an isolated file system. |
+ // TODO(kinuko, kmadhusu): Use a different file system type for MTP. |
const std::string filesystem_id = |
- fileapi::IsolatedContext::GetInstance()->RegisterFileSystemForFile( |
- device_path, &device_name); |
+ fileapi::IsolatedContext::GetInstance()->RegisterFileSystemForPath( |
+ fileapi::kFileSystemTypeMedia, device_path, &device_name); |
kmadhusu
2012/07/24 22:02:12
Let the initial changes specify the file system ty
kinuko
2012/07/25 17:46:31
Done (in http://crrev.com/148291).
|
CHECK(!filesystem_id.empty()); |
webkit_glue::WebIntentData intent( |