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

Side by Side Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 10837363: Introduce AutofillClient and use it to get rid of PasswordManager dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix header Created 8 years, 3 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/infobars/infobar_tab_helper.h"
9 #include "chrome/browser/password_manager/password_manager.h"
10 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/tab_contents/tab_contents.h"
13
14 TabAutofillManagerDelegate::TabAutofillManagerDelegate(TabContents* tab)
15 : tab_(tab) {
16 DCHECK(tab_);
17 }
18
19 InfoBarTabService* TabAutofillManagerDelegate::GetInfoBarService() {
20 return tab_->infobar_tab_helper();
21 }
22
23 PrefServiceBase* TabAutofillManagerDelegate::GetPrefs() {
24 return tab_->profile()->GetPrefs();
25 }
26
27 bool TabAutofillManagerDelegate::IsSavingPasswordsEnabled() const {
28 return tab_->password_manager()->IsSavingEnabled();
29 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.h ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698