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

Unified Diff: chrome/browser/chromeos/usb_mount_observer.cc

Issue 2496002: Fixing mounting so that it remounts any devices it finds on boot. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « chrome/browser/chromeos/usb_mount_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/usb_mount_observer.cc
===================================================================
--- chrome/browser/chromeos/usb_mount_observer.cc (revision 48747)
+++ chrome/browser/chromeos/usb_mount_observer.cc (working copy)
@@ -36,6 +36,16 @@
}
}
+void USBMountObserver::ScanForDevices(chromeos::MountLibrary* obj) {
+ const chromeos::MountLibrary::DiskVector& disks = obj->disks();
+ for (size_t i = 0; i < disks.size(); ++i) {
+ chromeos::MountLibrary::Disk disk = disks[i];
+ if (!disk.is_parent && !disk.device_path.empty()) {
+ obj->MountPath(disk.device_path.c_str());
+ }
+ }
+}
+
void USBMountObserver::OpenFileBrowse(const std::string& url,
const std::string& device_path,
bool small) {
« no previous file with comments | « chrome/browser/chromeos/usb_mount_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698