Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / file_manager / path_util.h
bloba16d488ac8d24cc5551e201935c56aa8b7febf44
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_PATH_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_PATH_UTIL_H_
8 #include <string>
10 class Profile;
12 namespace base {
13 class FilePath;
16 namespace file_manager {
17 namespace util {
19 // Gets the absolute path for the 'Downloads' folder for the |profile|.
20 base::FilePath GetDownloadsFolderForProfile(Profile* profile);
22 // Converts |old_path| to |new_path| and returns true, if the old path points
23 // to an old location of user folders (in "Downloads" or "Google Drive").
24 // The |profile| argument is used for determining the location of the
25 // "Downloads" folder.
27 // As of now (M40), the conversion is used only during initialization of
28 // download_prefs, where profile unaware initialization precedes profile
29 // aware stage. Below are the list of relocations we have made in the past.
31 // M27: crbug.com/229304, for supporting {offline, recent, shared} folders
32 // in Drive. Migration code for this is removed in M34.
33 // M34-35: crbug.com/313539, 356322, for supporting multi profiles.
34 // Migration code is removed in M40.
35 bool MigratePathFromOldFormat(Profile* profile,
36 const base::FilePath& old_path,
37 base::FilePath* new_path);
39 // The canonical mount point name for "Downloads" folder.
40 std::string GetDownloadsMountPointName(Profile* profile);
42 } // namespace util
43 } // namespace file_manager
45 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_PATH_UTIL_H_