| Index: ios/chrome/browser/infobars/infobar_utils.mm
|
| diff --git a/ios/chrome/browser/infobars/infobar_utils.mm b/ios/chrome/browser/infobars/infobar_utils.mm
|
| index e4643df50aa2baa8b46067bc542f6ec023c1d154..f3e9a0b28618a96e1c62ba827ef564089a308024 100644
|
| --- a/ios/chrome/browser/infobars/infobar_utils.mm
|
| +++ b/ios/chrome/browser/infobars/infobar_utils.mm
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "ios/chrome/browser/infobars/infobar_utils.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/mac/scoped_nsobject.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "components/infobars/core/confirm_infobar_delegate.h"
|
| @@ -12,9 +14,9 @@
|
|
|
| scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
|
| scoped_ptr<ConfirmInfoBarDelegate> delegate) {
|
| - scoped_ptr<InfoBarIOS> infobar(new InfoBarIOS(delegate.Pass()));
|
| + scoped_ptr<InfoBarIOS> infobar(new InfoBarIOS(std::move(delegate)));
|
| base::scoped_nsobject<ConfirmInfoBarController> controller(
|
| [[ConfirmInfoBarController alloc] initWithDelegate:infobar.get()]);
|
| infobar->SetController(controller);
|
| - return infobar.Pass();
|
| + return std::move(infobar);
|
| }
|
|
|