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

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

Issue 677373002: Remove migation code for file manager path preference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_unittest.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 48bf7f75c0f075583811d26133ba83f3c7092cda..786a43128c70fed036fade4c083199b8effb49a6 100644
--- a/chrome/browser/chromeos/file_manager/volume_manager.cc
+++ b/chrome/browser/chromeos/file_manager/volume_manager.cc
@@ -253,21 +253,6 @@ void VolumeManager::Initialize() {
if (chromeos::ProfileHelper::IsSigninProfile(profile_))
return;
- // Path to mount user folders have changed several times. We need to migrate
- // the old preferences on paths to the new format when needed. For the detail,
- // see the comments in file_manager::util::MigratePathFromOldFormat,
- // Note: Preferences related to downloads are handled in download_prefs.cc.
- // TODO(kinaba): Remove this after several rounds of releases.
- const base::FilePath old_path =
- profile_->GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory);
- base::FilePath new_path;
- if (!old_path.empty() &&
- file_manager::util::MigratePathFromOldFormat(profile_,
- old_path, &new_path)) {
- profile_->GetPrefs()->SetFilePath(prefs::kSelectFileLastDirectory,
- new_path);
- }
-
// Register 'Downloads' folder for the profile to the file system.
const base::FilePath downloads =
file_manager::util::GetDownloadsFolderForProfile(profile_);
« no previous file with comments | « chrome/browser/chromeos/file_manager/path_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698