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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 2299993005: Prepare some BlueButtons in chrome browser ui for switch to Harmony. (Closed)
Patch Set: restore include Created 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" 5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 if (parent->model()->ShouldShowMultipleAccountUpdateUI()) { 648 if (parent->model()->ShouldShowMultipleAccountUpdateUI()) {
649 selection_view_ = new CredentialsSelectionView(parent->model()); 649 selection_view_ = new CredentialsSelectionView(parent->model());
650 item = selection_view_; 650 item = selection_view_;
651 } else { 651 } else {
652 item = new ManagePasswordItemsView(parent_->model(), 652 item = new ManagePasswordItemsView(parent_->model(),
653 &parent->model()->pending_password()); 653 &parent->model()->pending_password());
654 } 654 }
655 nope_button_ = views::MdTextButton::CreateSecondaryUiButton( 655 nope_button_ = views::MdTextButton::CreateSecondaryUiButton(
656 this, l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_CANCEL_BUTTON)); 656 this, l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_CANCEL_BUTTON));
657 657
658 update_button_ = new views::BlueButton( 658 update_button_ = views::MdTextButton::CreateSecondaryUiBlueButton(
659 this, l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_UPDATE_BUTTON)); 659 this, l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_UPDATE_BUTTON));
660 660
661 // Title row. 661 // Title row.
662 BuildColumnSet(layout, SINGLE_VIEW_COLUMN_SET); 662 BuildColumnSet(layout, SINGLE_VIEW_COLUMN_SET);
663 AddTitleRowWithLink(layout, parent_->model(), this); 663 AddTitleRowWithLink(layout, parent_->model(), this);
664 664
665 // Credential row. 665 // Credential row.
666 layout->StartRow(0, SINGLE_VIEW_COLUMN_SET); 666 layout->StartRow(0, SINGLE_VIEW_COLUMN_SET);
667 layout->AddView(item); 667 layout->AddView(item);
668 668
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 AddChildView(new SaveConfirmationView(this)); 832 AddChildView(new SaveConfirmationView(this));
833 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { 833 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) {
834 AddChildView(new AutoSigninView(this)); 834 AddChildView(new AutoSigninView(this));
835 } else if (model_.state() == 835 } else if (model_.state() ==
836 password_manager::ui::CHROME_SIGN_IN_PROMO_STATE) { 836 password_manager::ui::CHROME_SIGN_IN_PROMO_STATE) {
837 AddChildView(new SignInPromoView(this)); 837 AddChildView(new SignInPromoView(this));
838 } else { 838 } else {
839 AddChildView(new ManageView(this)); 839 AddChildView(new ManageView(this));
840 } 840 }
841 } 841 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698