commit | 1156b5f891de178171e71b9221a96bef1ced3d3b | [log] [tgz] |
---|---|---|
author | Anton Bikineev <[email protected]> | Sat May 15 22:35:36 2021 |
committer | Chromium LUCI CQ <[email protected]> | Sat May 15 22:35:36 2021 |
tree | 03dbf7c4d6cbb2a24394c7d4dae4d879ed96b312 | |
parent | 330c3555c694dfafc19b727dc9b457f2e1015dea [diff] [blame] |
components: Replace base::Optional and friends with absl counterparts This replaces: - base::Optional -> absl::optional - include "base/optional.h" -> include "third_party/abseil-cpp/absl/types/optional.h" - base::nullopt -> absl::nullopt - base::make_optional -> absl::make_optional Bug: 1202909 Change-Id: If697b7bf69b199c1796f873eedca3359cdb48c64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2897151 Commit-Queue: Anton Bikineev <[email protected]> Owners-Override: Anton Bikineev <[email protected]> Reviewed-by: Peter Kasting <[email protected]> Cr-Commit-Position: refs/heads/master@{#883296}
diff --git a/components/cbor/diagnostic_writer_unittest.cc b/components/cbor/diagnostic_writer_unittest.cc index a45fbd0..a561275b 100644 --- a/components/cbor/diagnostic_writer_unittest.cc +++ b/components/cbor/diagnostic_writer_unittest.cc
@@ -64,7 +64,7 @@ static const uint8_t kInvalidUTF8[] = {0x62, 0xe2, 0x80}; cbor::Reader::Config config; config.allow_invalid_utf8 = true; - base::Optional<cbor::Value> maybe_value = + absl::optional<cbor::Value> maybe_value = cbor::Reader::Read(kInvalidUTF8, config); ASSERT_TRUE(maybe_value);