Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/views/autofill_profiles_view_win.cc

Issue 2818033: AutoFill: Aggregate profile data. Remove the AutoFill InfoBar. (Closed)
Patch Set: Comment. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synchronized_preferences.h ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698