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

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

Issue 295943002: Multi-Profile in Files.app: always mount per-profile "Downloads" folder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revived the "first profile" check more sanely. Created 6 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/file_manager/path_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9edaa4f7c5351236322955d62eca85aa9b10cb36..49942bc8e7b9d673158b7a157c2489d339921cf2 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -290,21 +290,15 @@ void VolumeManager::Initialize() {
new_path);
}
- static bool added_downloads = false;
- if (base::SysInfo::IsRunningOnChromeOS() || !added_downloads) {
- // Register 'Downloads' folder for the profile to the file system.
- // On non-ChromeOS system (test+development), we should do this only for
- // the first registered profile.
- const base::FilePath downloads =
- file_manager::util::GetDownloadsFolderForProfile(profile_);
- const bool success = RegisterDownloadsMountPoint(profile_, downloads);
- added_downloads = success;
- DCHECK(success);
-
- DoMountEvent(chromeos::MOUNT_ERROR_NONE,
- CreateDownloadsVolumeInfo(downloads),
- kNotRemounting);
- }
+ // Register 'Downloads' folder for the profile to the file system.
+ const base::FilePath downloads =
+ file_manager::util::GetDownloadsFolderForProfile(profile_);
+ const bool success = RegisterDownloadsMountPoint(profile_, downloads);
+ DCHECK(success);
+
+ DoMountEvent(chromeos::MOUNT_ERROR_NONE,
+ CreateDownloadsVolumeInfo(downloads),
+ kNotRemounting);
// Subscribe to DriveIntegrationService.
if (drive_integration_service_) {
« no previous file with comments | « chrome/browser/chromeos/file_manager/path_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698