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

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

Issue 12537016: Add callback to DiskMountManager::UnmountPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | 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 47d690b24a7bbd16d372616dfbf73b984f0dc5c3..d16dd15098f8e5099f33b31e4056b72bf7b930d8 100644
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.cc
@@ -559,7 +559,8 @@ void FileBrowserEventRouter::OnExternalStorageDisabledChanged() {
LOG(INFO) << "Unmounting " << it->second.mount_path
<< " because of policy.";
manager->UnmountPath(it->second.mount_path,
- chromeos::UNMOUNT_OPTIONS_NONE);
+ chromeos::UNMOUNT_OPTIONS_NONE,
+ DiskMountManager::UnmountPathCallback());
}
}
}
@@ -797,7 +798,9 @@ void FileBrowserEventRouter::OnDiskRemoved(
disk->system_path_prefix());
}
DiskMountManager::GetInstance()->UnmountPath(
- disk->mount_path(), chromeos::UNMOUNT_OPTIONS_LAZY);
+ disk->mount_path(),
+ chromeos::UNMOUNT_OPTIONS_LAZY,
+ DiskMountManager::UnmountPathCallback());
}
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698