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

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

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 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(

Powered by Google App Engine
This is Rietveld 408576698