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

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

Issue 190403002: Do not initialize the volume manager for sign in profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | 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 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_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698