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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_event_router.cc

Issue 12386080: Launch the action choice dialog for USB devices with an DCIM directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_event_router.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.cc b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
index 35ab4e32964bebcbe6762f41f0b18d93b39b58d0..84ab2f9744153f66ba96a60725d9f7861104ae18 100644
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
@@ -706,15 +706,12 @@ void FileBrowserEventRouter::ShowRemovableDeviceInFileManager(
const base::FilePath dcim_path = mount_path.Append(
FILE_PATH_LITERAL("DCIM"));
- // Show the action choice dialog only for sd cards with a DCIM directory.
- if (disk.device_type() == chromeos::DEVICE_TYPE_SD) {
- DirectoryExistsOnUIThread(
- dcim_path,
- base::Bind(&file_manager_util::OpenActionChoiceDialog, mount_path),
- base::Bind(&file_manager_util::ViewRemovableDrive, mount_path));
- } else {
- file_manager_util::ViewRemovableDrive(mount_path);
- }
+ // Show the action choice dialog only for media with a DCIM directory.
+ // Otherwise, just show Files.app.
+ DirectoryExistsOnUIThread(
+ dcim_path,
+ base::Bind(&file_manager_util::OpenActionChoiceDialog, mount_path),
+ base::Bind(&file_manager_util::ViewRemovableDrive, mount_path));
}
void FileBrowserEventRouter::OnDiskAdded(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698