| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/login_view.h" | 5 #include "chrome/browser/ui/views/login_view.h" |
| 6 | 6 |
| 7 #include "chrome/grit/generated_resources.h" | 7 #include "chrome/grit/generated_resources.h" |
| 8 #include "ui/base/l10n/l10n_util.h" | 8 #include "ui/base/l10n/l10n_util.h" |
| 9 #include "ui/views/controls/label.h" | 9 #include "ui/views/controls/label.h" |
| 10 #include "ui/views/controls/textfield/textfield.h" | 10 #include "ui/views/controls/textfield/textfield.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 username_field_->SetText(username); | 105 username_field_->SetText(username); |
| 106 password_field_->SetText(password); | 106 password_field_->SetText(password); |
| 107 username_field_->SelectAll(true); | 107 username_field_->SelectAll(true); |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 | 110 |
| 111 void LoginView::OnLoginModelDestroying() { | 111 void LoginView::OnLoginModelDestroying() { |
| 112 login_model_->RemoveObserver(this); | 112 login_model_->RemoveObserver(this); |
| 113 login_model_ = NULL; | 113 login_model_ = NULL; |
| 114 } | 114 } |
| 115 |
| 116 const char* LoginView::GetClassName() const { |
| 117 return "LoginView"; |
| 118 } |
| 119 |
| OLD | NEW |