0

[CodeHealth] Remove DictionaryValue::GetBoolean()

https://docs.google.com/document/d/1CwYuMXnVQsRsghwVzEkWj9GZzfERputSLQaKx5xLhjQ

This CL was uploaded by git cl split.

R=benwells@chromium.org

Bug: 1187033
Change-Id: Idf07df10bc6dc84445c268790198d651ae79aa0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3297974
Auto-Submit: Carlos Caballero <carlscab@google.com>
Commit-Queue: Ben Wells <benwells@chromium.org>
Reviewed-by: Ben Wells <benwells@chromium.org>
Cr-Commit-Position: refs/heads/main@{#944717}
This commit is contained in:
Carlos Caballero
2021-11-23 23:02:20 +00:00
committed by Chromium LUCI CQ
parent 06c29cee2c
commit b131634490

@ -128,8 +128,8 @@ std::vector<SavedFileEntry> GetSavedFileEntries(
base::ValueToFilePath(*path_value);
if (!file_path)
continue;
bool is_directory = false;
file_entry->GetBoolean(kFileEntryIsDirectory, &is_directory);
bool is_directory =
file_entry->FindBoolPath(kFileEntryIsDirectory).value_or(false);
int sequence_number = 0;
if (!file_entry->GetInteger(kFileEntrySequenceNumber, &sequence_number))
continue;