chore: modernize base::Value useage in asar/archive (#34796)
This commit is contained in:
parent
c418275228
commit
403bd39d05
2 changed files with 69 additions and 80 deletions
|
@ -13,12 +13,9 @@
|
|||
#include "base/files/file.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/synchronization/lock.h"
|
||||
#include "base/values.h"
|
||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
|
||||
namespace base {
|
||||
class DictionaryValue;
|
||||
}
|
||||
|
||||
namespace asar {
|
||||
|
||||
class ScopedTemporaryFile;
|
||||
|
@ -104,7 +101,7 @@ class Archive {
|
|||
base::File file_;
|
||||
int fd_ = -1;
|
||||
uint32_t header_size_ = 0;
|
||||
std::unique_ptr<base::DictionaryValue> header_;
|
||||
absl::optional<base::Value::Dict> header_;
|
||||
|
||||
// Cached external temporary files.
|
||||
base::Lock external_files_lock_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue