src: base::Value::HasKey(key) => base::Value::FindKey(key) (#13312)

This commit is contained in:
Shelley Vohr 2018-06-19 20:07:10 -07:00 committed by Samuel Attard
parent 0802f82356
commit c20e0c30a2
3 changed files with 4 additions and 4 deletions

View file

@ -221,13 +221,13 @@ bool Archive::Stat(const base::FilePath& path, Stats* stats) {
if (!GetNodeFromPath(path.AsUTF8Unsafe(), header_.get(), &node))
return false;
if (node->HasKey("link")) {
if (node->FindKey("link")) {
stats->is_file = false;
stats->is_link = true;
return true;
}
if (node->HasKey("files")) {
if (node->FindKey("files")) {
stats->is_file = false;
stats->is_directory = true;
return true;