Commit 77e83af4 authored by derat's avatar derat Committed by Commit bot

chromeos: Move removable media path constant to header.

Move the file manager kRemovableMediaPath constant to a
header so it can be used by tests.

BUG=633243

Review-Url: https://codereview.chromium.org/2582143002
Cr-Commit-Position: refs/heads/master@{#439401}
parent e6889dbe
......@@ -4,7 +4,6 @@
#include "chrome/browser/chromeos/file_manager/path_util.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/sys_info.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
......@@ -27,13 +26,14 @@ const char kDownloadsFolderName[] = "Downloads";
constexpr base::FilePath::CharType kArcDownloadPath[] =
FILE_PATH_LITERAL("/sdcard/Download");
constexpr base::FilePath::CharType kRemovableMediaPath[] =
FILE_PATH_LITERAL("/media/removable");
constexpr char kArcRemovableMediaProviderUrl[] =
"content://org.chromium.arc.removablemediaprovider/";
} // namespace
const base::FilePath::CharType kRemovableMediaPath[] =
FILE_PATH_LITERAL("/media/removable");
base::FilePath GetDownloadsFolderForProfile(Profile* profile) {
// On non-ChromeOS system (test+development), the primary profile uses
// $HOME/Downloads for ease for accessing local files for debugging.
......
......@@ -7,16 +7,18 @@
#include <string>
#include "base/files/file_path.h"
class GURL;
class Profile;
namespace base {
class FilePath;
}
namespace file_manager {
namespace util {
// Absolute base path for removable media on Chrome OS. Exposed here so it can
// be used by tests.
extern const base::FilePath::CharType kRemovableMediaPath[];
// Gets the absolute path for the 'Downloads' folder for the |profile|.
base::FilePath GetDownloadsFolderForProfile(Profile* profile);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment