| 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_) {
|
|
|