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

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

Issue 10825042: Implement media path filter (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
« no previous file with comments | « no previous file | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d0259c2702934d81bf592d07d20bc47783f44ced..3a2e5d530cb6b06f0803e45b1d0798ffa4e40f52 100644
--- a/chrome/browser/intents/device_attached_intent_source.cc
+++ b/chrome/browser/intents/device_attached_intent_source.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/intents/device_attached_intent_source.h"
+#include <string>
+
#include "base/file_path.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser.h"
@@ -54,7 +56,7 @@ void DeviceAttachedIntentSource::OnMediaDeviceAttached(
// TODO(kinuko, kmadhusu): Use a different file system type for MTP.
const std::string filesystem_id =
fileapi::IsolatedContext::GetInstance()->RegisterFileSystemForPath(
- fileapi::kFileSystemTypeIsolated, device_path, &device_name);
+ fileapi::kFileSystemTypeNativeMedia, device_path, &device_name);
CHECK(!filesystem_id.empty());
webkit_glue::WebIntentData intent(
« no previous file with comments | « no previous file | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698