| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" | 7 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" |
| 8 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" | 8 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" |
| 9 #include "components/infobars/core/infobar.h" | 9 #include "components/infobars/core/infobar.h" |
| 10 #include "ios/chrome/browser/infobars/infobar_utils.h" | 10 #include "ios/chrome/browser/infobars/infobar_utils.h" |
| 11 | 11 |
| 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 13 #error "This file requires ARC support." |
| 14 #endif |
| 15 |
| 12 namespace autofill { | 16 namespace autofill { |
| 13 | 17 |
| 14 std::unique_ptr<infobars::InfoBar> CreateSaveCardInfoBarMobile( | 18 std::unique_ptr<infobars::InfoBar> CreateSaveCardInfoBarMobile( |
| 15 std::unique_ptr<AutofillSaveCardInfoBarDelegateMobile> delegate) { | 19 std::unique_ptr<AutofillSaveCardInfoBarDelegateMobile> delegate) { |
| 16 // TODO(jdonnelly): Implement iOS save card infobar. http://crbug.com/535784 | 20 // TODO(jdonnelly): Implement iOS save card infobar. http://crbug.com/535784 |
| 17 return ::CreateConfirmInfoBar(std::move(delegate)); | 21 return ::CreateConfirmInfoBar(std::move(delegate)); |
| 18 } | 22 } |
| 19 | 23 |
| 20 } // namespace autofill | 24 } // namespace autofill |
| OLD | NEW |