| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui_screen_locker.h" | 5 #include "chrome/browser/chromeos/login/webui_screen_locker.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 string16 WebUIScreenLocker::GetConnectedNetworkName() { | 140 string16 WebUIScreenLocker::GetConnectedNetworkName() { |
| 141 return GetCurrentNetworkName(CrosLibrary::Get()->GetNetworkLibrary()); | 141 return GetCurrentNetworkName(CrosLibrary::Get()->GetNetworkLibrary()); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void WebUIScreenLocker::FixCaptivePortal() { | 144 void WebUIScreenLocker::FixCaptivePortal() { |
| 145 NOTREACHED(); | 145 NOTREACHED(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void WebUIScreenLocker::SetDisplayEmail(const std::string& email) { |
| 149 NOTREACHED(); |
| 150 } |
| 151 |
| 148 void WebUIScreenLocker::CompleteLogin(const std::string& username, | 152 void WebUIScreenLocker::CompleteLogin(const std::string& username, |
| 149 const std::string& password) { | 153 const std::string& password) { |
| 150 NOTREACHED(); | 154 NOTREACHED(); |
| 151 } | 155 } |
| 152 | 156 |
| 153 void WebUIScreenLocker::Login(const std::string& username, | 157 void WebUIScreenLocker::Login(const std::string& username, |
| 154 const std::string& password) { | 158 const std::string& password) { |
| 155 DCHECK(username == chromeos::UserManager::Get()->logged_in_user().email()); | 159 DCHECK(username == chromeos::UserManager::Get()->logged_in_user().email()); |
| 156 | 160 |
| 157 chromeos::ScreenLocker::default_screen_locker()->Authenticate( | 161 chromeos::ScreenLocker::default_screen_locker()->Authenticate( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 182 // Overridden from WebUILoginView: | 186 // Overridden from WebUILoginView: |
| 183 | 187 |
| 184 void WebUIScreenLocker::OnTabMainFrameFirstRender() { | 188 void WebUIScreenLocker::OnTabMainFrameFirstRender() { |
| 185 WebUILoginView::OnTabMainFrameFirstRender(); | 189 WebUILoginView::OnTabMainFrameFirstRender(); |
| 186 webui_ready_ = true; | 190 webui_ready_ = true; |
| 187 if (lock_ready_) | 191 if (lock_ready_) |
| 188 ScreenLockReady(); | 192 ScreenLockReady(); |
| 189 } | 193 } |
| 190 | 194 |
| 191 } // namespace chromeos | 195 } // namespace chromeos |
| OLD | NEW |