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 #include "chrome/browser/autofill/autofill_dialog.h" | 5 #include "chrome/browser/autofill/autofill_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 } | 971 } |
972 | 972 |
973 return -1; | 973 return -1; |
974 } | 974 } |
975 | 975 |
976 /////////////////////////////////////////////////////////////////////////////// | 976 /////////////////////////////////////////////////////////////////////////////// |
977 // Factory/finder method: | 977 // Factory/finder method: |
978 | 978 |
979 void ShowAutoFillDialog(gfx::NativeView parent, | 979 void ShowAutoFillDialog(gfx::NativeView parent, |
980 AutoFillDialogObserver* observer, | 980 AutoFillDialogObserver* observer, |
981 Profile* profile, | 981 Profile* profile) { |
982 AutoFillProfile* imported_profile, | |
983 CreditCard* imported_credit_card) { | |
984 DCHECK(profile); | 982 DCHECK(profile); |
985 | 983 |
986 if (!dialog) { | 984 if (!dialog) { |
987 dialog = new AutoFillDialog(observer, | 985 dialog = new AutoFillDialog(observer, |
988 profile->GetPersonalDataManager(), | 986 profile->GetPersonalDataManager(), |
989 imported_profile, | 987 NULL, |
990 imported_credit_card); | 988 NULL); |
991 } | 989 } |
992 dialog->Show(); | 990 dialog->Show(); |
993 } | 991 } |
OLD | NEW |