Commit 0bc1c02d authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Change Wallpaper Private API to be able to search on MyFiles

MyFiles is being changed to allow users to create files/folders, this CL
changes Wallpaper to be able to scan images in MyFiles instead of
Downloads.
The function |MyFilesFolderForProfile| takes care of returning Downloads
path if the flag MyFilesVolume is disabled.

Tested manually by loading in a device with MyFilesVolume flag enabled.

Bug: 873539
Change-Id: If0e40cd1d2961ec5ca380a799c5a272823c0cede
Reviewed-on: https://chromium-review.googlesource.com/c/1353031Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612426}
parent f9b30cc6
......@@ -723,7 +723,7 @@ WallpaperPrivateGetLocalImagePathsFunction::
ExtensionFunction::ResponseAction
WallpaperPrivateGetLocalImagePathsFunction::Run() {
base::FilePath path = file_manager::util::GetDownloadsFolderForProfile(
base::FilePath path = file_manager::util::GetMyFilesFolderForProfile(
Profile::FromBrowserContext(browser_context()));
base::PostTaskAndReplyWithResult(
WallpaperFunctionBase::GetNonBlockingTaskRunner(), 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