| Index: chrome/browser/ui/views/infobars/confirm_infobar.cc
|
| diff --git a/chrome/browser/ui/views/infobars/confirm_infobar.cc b/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
| index d73d27c5382152c260369b9ab2fd25cd57f37ea1..624e172f9b10abd34418a5faed96dbcca34f4f22 100644
|
| --- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
| +++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
| @@ -7,6 +7,7 @@
|
| #include <utility>
|
|
|
| #include "base/logging.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| #include "chrome/browser/ui/views/elevation_icon_setter.h"
|
| #include "components/infobars/core/confirm_infobar_delegate.h"
|
| @@ -19,15 +20,15 @@
|
|
|
| // InfoBarService -------------------------------------------------------------
|
|
|
| -scoped_ptr<infobars::InfoBar> InfoBarService::CreateConfirmInfoBar(
|
| - scoped_ptr<ConfirmInfoBarDelegate> delegate) {
|
| - return make_scoped_ptr(new ConfirmInfoBar(std::move(delegate)));
|
| +std::unique_ptr<infobars::InfoBar> InfoBarService::CreateConfirmInfoBar(
|
| + std::unique_ptr<ConfirmInfoBarDelegate> delegate) {
|
| + return base::WrapUnique(new ConfirmInfoBar(std::move(delegate)));
|
| }
|
|
|
|
|
| // ConfirmInfoBar -------------------------------------------------------------
|
|
|
| -ConfirmInfoBar::ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate)
|
| +ConfirmInfoBar::ConfirmInfoBar(std::unique_ptr<ConfirmInfoBarDelegate> delegate)
|
| : InfoBarView(std::move(delegate)),
|
| label_(nullptr),
|
| ok_button_(nullptr),
|
|
|