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

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

Issue 10817006: Add more FS types and introduce type field into IsolatedContext (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 b6ca86ef74d74130644a4bc17f15e7757d28e94f..d0259c2702934d81bf592d07d20bc47783f44ced 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"
@@ -50,9 +51,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::kFileSystemTypeIsolated, device_path, &device_name);
CHECK(!filesystem_id.empty());
webkit_glue::WebIntentData intent(
« no previous file with comments | « chrome/browser/extensions/platform_app_launcher.cc ('k') | chrome/browser/media_gallery/media_file_system_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698