refactor: NotificationPresenter::Create() returns a std::unique_ptr<> (#43804)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2024-09-19 22:11:48 -05:00 committed by GitHub
parent 78ede09ecd
commit 3ee3844bdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 14 deletions

View file

@ -967,9 +967,8 @@ ElectronBrowserClient::CreateDevToolsManagerDelegate() {
}
NotificationPresenter* ElectronBrowserClient::GetNotificationPresenter() {
if (!notification_presenter_) {
notification_presenter_.reset(NotificationPresenter::Create());
}
if (!notification_presenter_)
notification_presenter_ = NotificationPresenter::Create();
return notification_presenter_.get();
}