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

Unified Diff: chrome/browser/password_manager/save_password_infobar_delegate.cc

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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
Index: chrome/browser/password_manager/save_password_infobar_delegate.cc
diff --git a/chrome/browser/password_manager/save_password_infobar_delegate.cc b/chrome/browser/password_manager/save_password_infobar_delegate.cc
index 8c5d09b63d1d8203b4f486bc148331b9dff79045..de24a40e1491ff45d8604740b3f271887d6abe7b 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.cc
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.cc
@@ -6,9 +6,9 @@
#include "base/metrics/histogram.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/ui/sync/one_click_signin_helper.h"
+#include "components/infobars/core/infobar.h"
#include "components/password_manager/core/browser/password_form_manager.h"
#include "components/signin/core/common/profile_management_switches.h"
#include "content/public/browser/navigation_entry.h"
@@ -103,7 +103,7 @@ SavePasswordInfoBarDelegate::SavePasswordInfoBarDelegate(
// chrome/browser/ui/android/infobars/save_password_infobar.cc
// static
-scoped_ptr<InfoBar> SavePasswordInfoBarDelegate::CreateInfoBar(
+scoped_ptr<infobars::InfoBar> SavePasswordInfoBarDelegate::CreateInfoBar(
scoped_ptr<SavePasswordInfoBarDelegate> delegate) {
return ConfirmInfoBarDelegate::CreateInfoBar(
delegate.PassAs<ConfirmInfoBarDelegate>());
@@ -112,14 +112,16 @@ scoped_ptr<InfoBar> SavePasswordInfoBarDelegate::CreateInfoBar(
bool SavePasswordInfoBarDelegate::ShouldExpire(
const NavigationDetails& details) const {
- return !details.is_redirect && InfoBarDelegate::ShouldExpire(details);
+ return !details.is_redirect &&
+ infobars::InfoBarDelegate::ShouldExpire(details);
}
int SavePasswordInfoBarDelegate::GetIconID() const {
return IDR_INFOBAR_SAVE_PASSWORD;
}
-InfoBarDelegate::Type SavePasswordInfoBarDelegate::GetInfoBarType() const {
+infobars::InfoBarDelegate::Type SavePasswordInfoBarDelegate::GetInfoBarType()
+ const {
return PAGE_ACTION_TYPE;
}
@@ -152,7 +154,7 @@ void SavePasswordInfoBarDelegate::InfoBarDismissed() {
infobar_response_ = password_manager::metrics_util::INFOBAR_DISMISSED;
}
-InfoBarDelegate::InfoBarAutomationType
- SavePasswordInfoBarDelegate::GetInfoBarAutomationType() const {
+infobars::InfoBarDelegate::InfoBarAutomationType
+SavePasswordInfoBarDelegate::GetInfoBarAutomationType() const {
return PASSWORD_INFOBAR;
}
« no previous file with comments | « chrome/browser/password_manager/save_password_infobar_delegate.h ('k') | chrome/browser/pepper_broker_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698