| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ | 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ |
| 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ | 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
| 9 | 9 |
| 10 class ConfirmInfoBarDelegate; | 10 class ConfirmInfoBarDelegate; |
| 11 | 11 |
| 12 namespace infobars { | 12 namespace infobars { |
| 13 class InfoBar; | 13 class InfoBar; |
| 14 } | 14 } |
| 15 | 15 |
| 16 // Returns a confirm infobar that owns |delegate|. | 16 // Returns a confirm infobar that owns |delegate|. |
| 17 // Visible for testing. | 17 // Visible for testing. |
| 18 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( | 18 std::unique_ptr<infobars::InfoBar> CreateConfirmInfoBar( |
| 19 scoped_ptr<ConfirmInfoBarDelegate> delegate); | 19 std::unique_ptr<ConfirmInfoBarDelegate> delegate); |
| 20 | 20 |
| 21 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ | 21 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_UTILS_H_ |
| OLD | NEW |