Commit 2a9f7ae4 authored by tommycli@chromium.org's avatar tommycli@chromium.org

Media Galleries API Picasa: Fix PicasaFileUtil GetInfoSync minor bug.

NativeMediaFileUtil allows GetInfoSync to be called with a NULL |platform_path|. This change brings PicasaFileUtil behavior in line with that.

BUG=151701

Review URL: https://chromiumcodereview.appspot.com/23442026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223521 0039d316-1c4b-4281-b951-d872f2087c98
parent 8aac2d78
...@@ -103,9 +103,9 @@ base::PlatformFileError PicasaFileUtil::GetFileInfoSync( ...@@ -103,9 +103,9 @@ base::PlatformFileError PicasaFileUtil::GetFileInfoSync(
base::PlatformFileInfo* file_info, base::FilePath* platform_path) { base::PlatformFileInfo* file_info, base::FilePath* platform_path) {
DCHECK(context); DCHECK(context);
DCHECK(file_info); DCHECK(file_info);
DCHECK(platform_path);
*platform_path = base::FilePath(); if (platform_path)
*platform_path = base::FilePath();
std::vector<std::string> components; std::vector<std::string> components;
fileapi::VirtualPath::GetComponentsUTF8Unsafe(url.path(), &components); fileapi::VirtualPath::GetComponentsUTF8Unsafe(url.path(), &components);
......
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