| Index: webkit/chromeos/fileapi/cros_mount_point_provider.cc
|
| diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc
|
| index 4b834a957ec863b48ad2295a0f52ee66c9e6b1aa..a70bc64f16dea95272d047232e17fd26bf538585 100644
|
| --- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc
|
| +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc
|
| @@ -30,18 +30,6 @@ namespace {
|
|
|
| const char kChromeUIScheme[] = "chrome";
|
|
|
| -// Returns the home directory path, or an empty string if the home directory
|
| -// is not found.
|
| -std::string GetHomeDirectory() {
|
| - if (base::chromeos::IsRunningOnChromeOS())
|
| - return "/home/chronos/user";
|
| -
|
| - const char* home = getenv("HOME");
|
| - if (home)
|
| - return home;
|
| - return "";
|
| -}
|
| -
|
| } // namespace
|
|
|
| namespace chromeos {
|
| @@ -63,7 +51,7 @@ CrosMountPointProvider::CrosMountPointProvider(
|
| : special_storage_policy_(special_storage_policy),
|
| file_access_permissions_(new FileAccessPermissions()),
|
| local_file_util_(new fileapi::LocalFileUtil()) {
|
| - const std::string home = GetHomeDirectory();
|
| + const std::string home = base::chromeos::GetHomeDirectory();
|
| if (!home.empty()) {
|
| AddLocalMountPoint(
|
| FilePath::FromUTF8Unsafe(home).AppendASCII("Downloads"));
|
|
|