OLD | NEW |
(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 } |
OLD | NEW |