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

Side by Side Diff: chrome/browser/chromeos/login/password_changed_view.cc

Issue 3583013: [cros] Add blocking UI on offline: OK, online auth: fail case. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: address cmasone, oshima comments Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/chromeos/login/password_changed_view.h" 5 #include "chrome/browser/chromeos/login/password_changed_view.h"
6 6
7 #include "app/keyboard_codes.h" 7 #include "app/keyboard_codes.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const views::Event& event) { 176 const views::Event& event) {
177 if (sender == full_sync_radio_) { 177 if (sender == full_sync_radio_) {
178 old_password_field_->SetEnabled(false); 178 old_password_field_->SetEnabled(false);
179 old_password_field_->SetText(string16()); 179 old_password_field_->SetText(string16());
180 } else if (sender == delta_sync_radio_) { 180 } else if (sender == delta_sync_radio_) {
181 old_password_field_->SetEnabled(true); 181 old_password_field_->SetEnabled(true);
182 old_password_field_->RequestFocus(); 182 old_password_field_->RequestFocus();
183 } 183 }
184 } 184 }
185 185
186 bool PasswordChangedView::HandleKeystroke(views::Textfield* s,
187 const views::Textfield::Keystroke& keystroke) {
188 if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) {
189 ExitDialog();
190 return true;
191 }
192
193 return false;
194 }
195
196 } // namespace chromeos 186 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/password_changed_view.h ('k') | chrome/browser/chromeos/login/screen_locker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698