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

Unified Diff: chrome/browser/chromeos/file_manager/volume_manager.cc

Issue 23541009: Return Drive mount point by getMountPoints. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test Created 7 years, 3 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/chromeos/file_manager/volume_manager.cc
diff --git a/chrome/browser/chromeos/file_manager/volume_manager.cc b/chrome/browser/chromeos/file_manager/volume_manager.cc
index 578089244da1722e10ccac387312b975ec2dfac2..05de20df9b34cc4027998cf12542751ba55697b3 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -160,7 +160,9 @@ std::vector<VolumeInfo> VolumeManager::GetVolumeInfoList() const {
std::vector<VolumeInfo> result;
- // TODO(hidehiko): Adds Drive if available.
+ // Adds "Drive" volume.
+ if (drive_integration_service_ && drive_integration_service_->IsMounted())
+ result.push_back(CreateDriveVolumeInfo());
// Adds "Downloads".
base::FilePath home_path;

Powered by Google App Engine
This is Rietveld 408576698