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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 438893002: Add ManagePasswordItemViewController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add another test Created 6 years, 5 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/ui/views/passwords/manage_passwords_bubble_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
index 55dfde9866b8dc7c182eaf618b12be396523e038..ef3e312c380107bfe0f15268e09f4c9ad5198e0d 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -167,9 +167,9 @@ ManagePasswordsBubbleView::PendingView::PendingView(
// Create the pending credential item, save button and refusal combobox.
ManagePasswordItemView* item =
- new ManagePasswordItemView(parent_->model(),
- parent_->model()->pending_credentials(),
- ManagePasswordItemView::FIRST_ITEM);
+ new ManagePasswordItemView(parent->model(),
+ parent->model()->pending_credentials(),
+ password_manager::ui::FIRST_ITEM);
save_button_ = new views::BlueButton(
this, l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_SAVE_BUTTON));
save_button_->SetFontList(ui::ResourceBundle::GetSharedInstance().GetFontList(
@@ -326,8 +326,8 @@ ManagePasswordsBubbleView::ManageView::ManageView(
parent_->model(),
*i->second,
i == parent_->model()->best_matches().begin()
- ? ManagePasswordItemView::FIRST_ITEM
- : ManagePasswordItemView::SUBSEQUENT_ITEM);
+ ? password_manager::ui::FIRST_ITEM
+ : password_manager::ui::SUBSEQUENT_ITEM);
layout->StartRow(0, SINGLE_VIEW_COLUMN_SET);
layout->AddView(item);

Powered by Google App Engine
This is Rietveld 408576698