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

Side by Side Diff: chrome/browser/autofill/autofill_dialog_mac.mm

Issue 1077003: AutoFill: Set the kAutoFillInfoBarShown pref to true if the user opens the Au... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
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 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/profile.h" 8 #include "chrome/browser/profile.h"
9 #include "chrome/common/pref_names.h"
8 10
9 // Mac implementation of |ShowAutoFillDialog| interface defined in 11 // Mac implementation of |ShowAutoFillDialog| interface defined in
10 // |chrome/browser/autofill/autofill_dialog.h|. 12 // |chrome/browser/autofill/autofill_dialog.h|.
11 void ShowAutoFillDialog(AutoFillDialogObserver* observer, 13 void ShowAutoFillDialog(AutoFillDialogObserver* observer,
12 const std::vector<AutoFillProfile*>& profiles, 14 const std::vector<AutoFillProfile*>& profiles,
13 const std::vector<CreditCard*>& credit_cards, 15 const std::vector<CreditCard*>& credit_cards,
14 Profile *profile) { 16 Profile *profile) {
17 // It's possible we haven't shown the InfoBar yet, but if the user is in the
18 // AutoFill dialog, she doesn't need to be asked to enable or disable
19 // AutoFill.
20 profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true);
21
15 [AutoFillDialogController 22 [AutoFillDialogController
16 showAutoFillDialogWithObserver:observer 23 showAutoFillDialogWithObserver:observer
17 autoFillProfiles:profiles 24 autoFillProfiles:profiles
18 creditCards:credit_cards 25 creditCards:credit_cards
19 profile:profile]; 26 profile:profile];
20 } 27 }
21 28
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/views/autofill_profiles_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698