| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <map> | 5 #include <map> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 return test_generated_bubble_controller_; | 638 return test_generated_bubble_controller_; |
| 639 } | 639 } |
| 640 | 640 |
| 641 const MockNewCreditCardBubbleController* mock_new_card_bubble_controller() { | 641 const MockNewCreditCardBubbleController* mock_new_card_bubble_controller() { |
| 642 return mock_new_card_bubble_controller_.get(); | 642 return mock_new_card_bubble_controller_.get(); |
| 643 } | 643 } |
| 644 | 644 |
| 645 private: | 645 private: |
| 646 void FinishedCallback( | 646 void FinishedCallback( |
| 647 AutofillManagerDelegate::RequestAutocompleteResult result, | 647 AutofillManagerDelegate::RequestAutocompleteResult result, |
| 648 const base::string16& debug_message, |
| 648 const FormStructure* form_structure) { | 649 const FormStructure* form_structure) { |
| 649 form_structure_ = form_structure; | 650 form_structure_ = form_structure; |
| 650 } | 651 } |
| 651 | 652 |
| 652 #if defined(OS_WIN) | 653 #if defined(OS_WIN) |
| 653 // http://crbug.com/227221 | 654 // http://crbug.com/227221 |
| 654 ui::ScopedOleInitializer ole_initializer_; | 655 ui::ScopedOleInitializer ole_initializer_; |
| 655 #endif | 656 #endif |
| 656 | 657 |
| 657 // The controller owns itself. | 658 // The controller owns itself. |
| (...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3410 controller()->MenuModelForSection(SECTION_CC_BILLING)->ActivatedAt(2); | 3411 controller()->MenuModelForSection(SECTION_CC_BILLING)->ActivatedAt(2); |
| 3411 | 3412 |
| 3412 FieldValueMap outputs; | 3413 FieldValueMap outputs; |
| 3413 outputs[NAME_FULL] = ASCIIToUTF16("madonna"); | 3414 outputs[NAME_FULL] = ASCIIToUTF16("madonna"); |
| 3414 controller()->GetView()->SetUserInput(SECTION_CC_BILLING, outputs); | 3415 controller()->GetView()->SetUserInput(SECTION_CC_BILLING, outputs); |
| 3415 | 3416 |
| 3416 ASSERT_NO_FATAL_FAILURE(SwitchToAutofill()); | 3417 ASSERT_NO_FATAL_FAILURE(SwitchToAutofill()); |
| 3417 } | 3418 } |
| 3418 | 3419 |
| 3419 } // namespace autofill | 3420 } // namespace autofill |
| OLD | NEW |