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

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

Issue 1215533003: Add a refresh button for providers which do not support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 d0b08968d8ae57d24cb13ad6d63cffdc76be5173..73bc7542b2035b0e1ec0b309318c215250fb44a4 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -144,7 +144,8 @@ Volume::Volume()
is_parent_(false),
is_read_only_(false),
has_media_(false),
- configurable_(false) {
+ configurable_(false),
+ watchable_(false) {
}
Volume::~Volume() {
@@ -162,6 +163,7 @@ Volume* Volume::CreateForDrive(Profile* profile) {
volume->mount_path_ = drive_path;
volume->mount_condition_ = chromeos::disks::MOUNT_CONDITION_NONE;
volume->volume_id_ = GenerateVolumeId(*volume);
+ volume->watchable_ = true;
return volume;
}
@@ -175,6 +177,7 @@ Volume* Volume::CreateForDownloads(const base::FilePath& downloads_path) {
volume->mount_path_ = downloads_path;
volume->mount_condition_ = chromeos::disks::MOUNT_CONDITION_NONE;
volume->volume_id_ = GenerateVolumeId(*volume);
+ volume->watchable_ = true;
return volume;
}
@@ -203,6 +206,7 @@ Volume* Volume::CreateForRemovable(
(mount_point.mount_type == chromeos::MOUNT_TYPE_ARCHIVE);
}
volume->volume_id_ = GenerateVolumeId(*volume);
+ volume->watchable_ = true;
return volume;
}
@@ -233,6 +237,7 @@ Volume* Volume::CreateForProvidedFileSystem(
volume->is_parent_ = true;
volume->is_read_only_ = !file_system_info.writable();
volume->configurable_ = file_system_info.configurable();
+ volume->watchable_ = file_system_info.watchable();
volume->volume_id_ = GenerateVolumeId(*volume);
return volume;
}

Powered by Google App Engine
This is Rietveld 408576698