| OLD | NEW |
| 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 // Show/hide the close button. | 878 // Show/hide the close button. |
| 879 GetWidget()->non_client_view()->ResetWindowControls(); | 879 GetWidget()->non_client_view()->ResetWindowControls(); |
| 880 GetWidget()->UpdateWindowTitle(); | 880 GetWidget()->UpdateWindowTitle(); |
| 881 SizeToContents(); | 881 SizeToContents(); |
| 882 } | 882 } |
| 883 | 883 |
| 884 void ManagePasswordsBubbleView::CreateChild() { | 884 void ManagePasswordsBubbleView::CreateChild() { |
| 885 if (model_.state() == password_manager::ui::PENDING_PASSWORD_STATE) { | 885 if (model_.state() == password_manager::ui::PENDING_PASSWORD_STATE) { |
| 886 AddChildView(new PendingView(this)); | 886 AddChildView(new PendingView(this)); |
| 887 } else if (model_.state() == | 887 } else if (model_.state() == |
| 888 password_manager::ui::PENDING_PASSWORD_UPDATE_STATE) { | 888 password_manager::ui::PENDING_PASSWORD_UPDATE_STATE) { |
| 889 AddChildView(new UpdatePendingView(this)); | 889 AddChildView(new UpdatePendingView(this)); |
| 890 } else if (model_.state() == password_manager::ui::CONFIRMATION_STATE) { | 890 } else if (model_.state() == password_manager::ui::CONFIRMATION_STATE) { |
| 891 AddChildView(new SaveConfirmationView(this)); | 891 AddChildView(new SaveConfirmationView(this)); |
| 892 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { | 892 } else if (model_.state() == password_manager::ui::AUTO_SIGNIN_STATE) { |
| 893 AddChildView(new AutoSigninView(this)); | 893 AddChildView(new AutoSigninView(this)); |
| 894 } else if (model_.state() == | 894 } else if (model_.state() == |
| 895 password_manager::ui::CHROME_SIGN_IN_PROMO_STATE) { | 895 password_manager::ui::CHROME_SIGN_IN_PROMO_STATE) { |
| 896 AddChildView(new SignInPromoView(this)); | 896 AddChildView(new SignInPromoView(this)); |
| 897 } else { | 897 } else { |
| 898 AddChildView(new ManageView(this)); | 898 AddChildView(new ManageView(this)); |
| 899 } | 899 } |
| 900 } | 900 } |
| OLD | NEW |