commit | c4c27d8df5ed1e80a3547383076ea9a7c7c27859 | [log] [tgz] |
---|---|---|
author | Ho Cheung <[email protected]> | Wed May 24 14:12:39 2023 |
committer | Chromium LUCI CQ <[email protected]> | Wed May 24 14:12:39 2023 |
tree | eb0838be15ad6de6de11f5efa7e6f5279b97614a | |
parent | bfa922308a17e73fb08f62a040dfa1e18653e04a [diff] [blame] |
Manual raw_ptr rewrite: //components Bug: 1446392 Change-Id: Ie671b7921bbf4441cb8c3c03b5ec88600d064130 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4561504 Reviewed-by: Colin Blundell <[email protected]> Commit-Queue: Colin Blundell <[email protected]> Auto-Submit: Ho Cheung <[email protected]> Cr-Commit-Position: refs/heads/main@{#1148492}
diff --git a/components/viz/client/frame_eviction_manager_unittest.cc b/components/viz/client/frame_eviction_manager_unittest.cc index 1c72f21..cc192add 100644 --- a/components/viz/client/frame_eviction_manager_unittest.cc +++ b/components/viz/client/frame_eviction_manager_unittest.cc
@@ -7,7 +7,7 @@ #include <vector> #include "base/memory/memory_pressure_listener.h" -#include "base/memory/raw_ptr_exclusion.h" +#include "base/memory/raw_ptr.h" #include "base/ranges/algorithm.h" #include "base/test/test_mock_time_task_runner.h" #include "testing/gtest/include/gtest/gtest.h" @@ -41,10 +41,7 @@ bool has_frame() const { return has_frame_; } private: - // This field is not a raw_ptr<> because it was filtered by the rewriter for: - // #constexpr-ctor-field-initializer - RAW_PTR_EXCLUSION FrameEvictionManager* manager_ = - FrameEvictionManager::GetInstance(); + raw_ptr<FrameEvictionManager> manager_ = FrameEvictionManager::GetInstance(); bool has_frame_ = true; };