Commit 6f608837 authored by Jeremie Boulic's avatar Jeremie Boulic Committed by Commit Bot

Fix GetAndroidFilesPath function name

Follow-up to crrev.com/c/2016689. Convention has been to use
AndroidFiles* instead of AndroidPlayFiles in the chromium code base.

Bug: 1044495
Change-Id: If38cdaa971b2a4a2b96c2b298ddc9d1c3cc5ae02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2027009
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737093}
parent ee991712
...@@ -157,7 +157,7 @@ base::FilePath GetMyFilesFolderForProfile(Profile* profile) { ...@@ -157,7 +157,7 @@ base::FilePath GetMyFilesFolderForProfile(Profile* profile) {
return profile->GetPath().AppendASCII(kFolderNameMyFiles); return profile->GetPath().AppendASCII(kFolderNameMyFiles);
} }
base::FilePath GetAndroidPlayFilesPath() { base::FilePath GetAndroidFilesPath() {
// Check if Android has a registered path already. This happens for tests. // Check if Android has a registered path already. This happens for tests.
const std::string mount_point_name = util::GetAndroidFilesMountPointName(); const std::string mount_point_name = util::GetAndroidFilesMountPointName();
storage::ExternalMountPoints* const mount_points = storage::ExternalMountPoints* const mount_points =
......
...@@ -35,7 +35,7 @@ base::FilePath GetMyFilesFolderForProfile(Profile* profile); ...@@ -35,7 +35,7 @@ base::FilePath GetMyFilesFolderForProfile(Profile* profile);
// Gets the absolute path for the user's Android Play files (Movies, Pictures, // Gets the absolute path for the user's Android Play files (Movies, Pictures,
// etc..., Android apps excluded). The default path may be overridden by tests. // etc..., Android apps excluded). The default path may be overridden by tests.
base::FilePath GetAndroidPlayFilesPath(); base::FilePath GetAndroidFilesPath();
// Converts |old_path| to |new_path| and returns true, if the old path points // Converts |old_path| to |new_path| and returns true, if the old path points
// to an old location of user folders (in "Downloads" or "Google Drive"). // to an old location of user folders (in "Downloads" or "Google Drive").
......
...@@ -261,7 +261,7 @@ void StorageHandler::UpdateMyFilesSize() { ...@@ -261,7 +261,7 @@ void StorageHandler::UpdateMyFilesSize() {
file_manager::util::GetMyFilesFolderForProfile(profile_); file_manager::util::GetMyFilesFolderForProfile(profile_);
const base::FilePath android_files_path = const base::FilePath android_files_path =
base::FilePath(file_manager::util::GetAndroidPlayFilesPath()); base::FilePath(file_manager::util::GetAndroidFilesPath());
base::PostTaskAndReplyWithResult( base::PostTaskAndReplyWithResult(
FROM_HERE, FROM_HERE,
......
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