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

Unified Diff: chrome/browser/password_manager_delegate_impl.cc

Issue 7810002: Move infobar handling to a tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/pdf_unsupported_feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager_delegate_impl.cc
diff --git a/chrome/browser/password_manager_delegate_impl.cc b/chrome/browser/password_manager_delegate_impl.cc
index b873b2ef77ac86a2c293cdd8138e4b378ccee79c..c30c6387f66aedaed6a84564ba0c409827e491c8 100644
--- a/chrome/browser/password_manager_delegate_impl.cc
+++ b/chrome/browser/password_manager_delegate_impl.cc
@@ -6,6 +6,7 @@
#include "base/memory/singleton.h"
#include "base/metrics/histogram.h"
+#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/password_manager/password_form_manager.h"
#include "chrome/browser/password_manager/password_manager.h"
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
@@ -115,8 +116,9 @@ void PasswordManagerDelegateImpl::FillPasswordForm(
void PasswordManagerDelegateImpl::AddSavePasswordInfoBar(
PasswordFormManager* form_to_save) {
- tab_contents_->AddInfoBar(new SavePasswordInfoBarDelegate(
- tab_contents_->tab_contents(), form_to_save));
+ tab_contents_->infobar_tab_helper()->AddInfoBar(
+ new SavePasswordInfoBarDelegate(
+ tab_contents_->tab_contents(), form_to_save));
}
Profile* PasswordManagerDelegateImpl::GetProfileForPasswordManager() {
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/pdf_unsupported_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698