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 ef0e3b3bb2bd55a0023b77b76ee1527ed3c4691a..cc489c72d46c6fbde2f3fb779d6f3e28f9bd77c0 100644 |
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc |
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc |
@@ -243,17 +243,19 @@ void VolumeManager::Initialize() { |
new_path); |
} |
+ // If in Sign in profile, then skip mounting and listening for mount events. |
+ if (chromeos::ProfileHelper::IsSigninProfile(profile_)) |
+ return; |
+ |
// Register 'Downloads' folder for the profile to the file system. |
- if (!chromeos::ProfileHelper::IsSigninProfile(profile_)) { |
- 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); |
- } |
+ 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_) { |