| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" | 5 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" | 
| 6 #include "chrome/browser/autofill/autofill_dialog.h" | 6 #include "chrome/browser/autofill/autofill_dialog.h" | 
| 7 #include "chrome/browser/pref_service.h" | 7 #include "chrome/browser/pref_service.h" | 
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" | 
| 9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" | 
| 10 | 10 | 
| 11 // Mac implementation of |ShowAutoFillDialog| interface defined in | 11 // Mac implementation of |ShowAutoFillDialog| interface defined in | 
| 12 // |chrome/browser/autofill/autofill_dialog.h|. | 12 // |chrome/browser/autofill/autofill_dialog.h|. | 
| 13 void ShowAutoFillDialog(gfx::NativeView parent, | 13 void ShowAutoFillDialog(AutoFillDialogObserver* observer, | 
| 14                         AutoFillDialogObserver* observer, | 14                         const std::vector<AutoFillProfile*>& profiles, | 
| 15                         Profile* profile, | 15                         const std::vector<CreditCard*>& credit_cards, | 
| 16                         AutoFillProfile* imported_profile, | 16                         Profile *profile) { | 
| 17                         CreditCard* imported_credit_card) { |  | 
| 18   // It's possible we haven't shown the InfoBar yet, but if the user is in the | 17   // It's possible we haven't shown the InfoBar yet, but if the user is in the | 
| 19   // AutoFill dialog, she doesn't need to be asked to enable or disable | 18   // AutoFill dialog, she doesn't need to be asked to enable or disable | 
| 20   // AutoFill. | 19   // AutoFill. | 
| 21   profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true); | 20   profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true); | 
| 22 | 21 | 
| 23   [AutoFillDialogController | 22   [AutoFillDialogController | 
| 24       showAutoFillDialogWithObserver:observer | 23       showAutoFillDialogWithObserver:observer | 
| 25                              profile:profile | 24                     autoFillProfiles:profiles | 
| 26                      importedProfile:imported_profile | 25                          creditCards:credit_cards | 
| 27                   importedCreditCard:imported_credit_card]; | 26                              profile:profile]; | 
| 28 } | 27 } | 
|  | 28 | 
| OLD | NEW | 
|---|