Commit 0dfeb61d authored by Austin Sullivan's avatar Austin Sullivan Committed by Commit Bot

GetLastPickedDirectory: default invalid type as kLocal

Unresolved nit from https://crrev.com/c/2542805

Bug: 1139907
Change-Id: I6684aca074fa5d8f2ef416fed41f3e66ce5fc018
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2545225
Commit-Queue: Austin Sullivan <asully@chromium.org>
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Auto-Submit: Austin Sullivan <asully@chromium.org>
Reviewed-by: default avatarMarijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828386}
parent c5bbd834
......@@ -466,9 +466,9 @@ ChromeNativeFileSystemPermissionContext::GetLastPickedDirectory(
auto type_int = value->FindIntKey(kLastPickedDirectoryTypeKey)
.value_or(static_cast<int>(PathType::kLocal));
path_info.type = type_int == static_cast<int>(PathType::kLocal)
? PathType::kLocal
: PathType::kExternal;
path_info.type = type_int == static_cast<int>(PathType::kExternal)
? PathType::kExternal
: PathType::kLocal;
path_info.path =
util::ValueToFilePath(value->FindKey(kLastPickedDirectoryKey))
.value_or(base::FilePath());
......
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