chore: enable check raw ptr fields (#38167)

This commit is contained in:
John Kleinschmidt 2023-05-11 16:07:39 -04:00 committed by GitHub
parent 141175c723
commit 3dbc0a365f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
120 changed files with 298 additions and 185 deletions

View file

@ -12,6 +12,7 @@
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "components/viz/common/features.h"
@ -167,7 +168,7 @@ class ElectronDelegatedFrameHostClient
void InvalidateLocalSurfaceIdOnEviction() override {}
private:
OffScreenRenderWidgetHostView* const view_;
const raw_ptr<OffScreenRenderWidgetHostView> view_;
};
OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
@ -635,7 +636,7 @@ OffScreenRenderWidgetHostView::CreateHostDisplayClient(
base::BindRepeating(&OffScreenRenderWidgetHostView::OnPaint,
weak_ptr_factory_.GetWeakPtr()));
host_display_client_->SetActive(IsPainting());
return base::WrapUnique(host_display_client_);
return base::WrapUnique(host_display_client_.get());
}
bool OffScreenRenderWidgetHostView::InstallTransparency() {