| 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 #include "chrome/browser/views/autofill_profiles_view_win.h" | 4 #include "chrome/browser/views/autofill_profiles_view_win.h" |
| 5 | 5 |
| 6 #include <vsstyle.h> | 6 #include <vsstyle.h> |
| 7 #include <vssym32.h> | 7 #include <vssym32.h> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 | 1355 |
| 1356 | 1356 |
| 1357 // Declared in "chrome/browser/autofill/autofill_dialog.h" | 1357 // Declared in "chrome/browser/autofill/autofill_dialog.h" |
| 1358 void ShowAutoFillDialog(gfx::NativeView parent, | 1358 void ShowAutoFillDialog(gfx::NativeView parent, |
| 1359 AutoFillDialogObserver* observer, | 1359 AutoFillDialogObserver* observer, |
| 1360 Profile* profile, | 1360 Profile* profile, |
| 1361 AutoFillProfile* imported_profile, | 1361 AutoFillProfile* imported_profile, |
| 1362 CreditCard* imported_credit_card) { | 1362 CreditCard* imported_credit_card) { |
| 1363 DCHECK(profile); | 1363 DCHECK(profile); |
| 1364 | 1364 |
| 1365 // It's possible we haven't shown the InfoBar yet, but if the user is in the | |
| 1366 // AutoFill dialog, she doesn't need to be asked to enable or disable | |
| 1367 // AutoFill. | |
| 1368 profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true); | |
| 1369 | |
| 1370 PersonalDataManager* personal_data_manager = | 1365 PersonalDataManager* personal_data_manager = |
| 1371 profile->GetPersonalDataManager(); | 1366 profile->GetPersonalDataManager(); |
| 1372 DCHECK(personal_data_manager); | 1367 DCHECK(personal_data_manager); |
| 1373 AutoFillProfilesView::Show(parent, observer, personal_data_manager, | 1368 AutoFillProfilesView::Show(parent, observer, personal_data_manager, |
| 1374 profile->GetPrefs(), imported_profile, imported_credit_card); | 1369 profile->GetPrefs(), imported_profile, imported_credit_card); |
| 1375 } | 1370 } |
| OLD | NEW |