Skip to content

Commit

Permalink
[CodeHealth] Remove DictionaryValue::GetBoolean()
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
carlscabgro authored and Chromium LUCI CQ committed Nov 23, 2021
1 parent 06c29ce commit b131634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/saved_files_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b131634

Please sign in to comment.