OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/signin/easy_unlock_service_regular.h" | 5 #include "chrome/browser/signin/easy_unlock_service_regular.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/prefs/scoped_user_pref_update.h" | 10 #include "base/prefs/scoped_user_pref_update.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 EasyUnlockService::TurnOffFlowStatus | 150 EasyUnlockService::TurnOffFlowStatus |
151 EasyUnlockServiceRegular::GetTurnOffFlowStatus() const { | 151 EasyUnlockServiceRegular::GetTurnOffFlowStatus() const { |
152 return turn_off_flow_status_; | 152 return turn_off_flow_status_; |
153 } | 153 } |
154 | 154 |
155 std::string EasyUnlockServiceRegular::GetChallenge() const { | 155 std::string EasyUnlockServiceRegular::GetChallenge() const { |
156 return std::string(); | 156 return std::string(); |
157 } | 157 } |
158 | 158 |
| 159 std::string EasyUnlockServiceRegular::GetWrappedSecret() const { |
| 160 return std::string(); |
| 161 } |
| 162 |
159 void EasyUnlockServiceRegular::InitializeInternal() { | 163 void EasyUnlockServiceRegular::InitializeInternal() { |
160 registrar_.Init(profile()->GetPrefs()); | 164 registrar_.Init(profile()->GetPrefs()); |
161 registrar_.Add( | 165 registrar_.Add( |
162 prefs::kEasyUnlockAllowed, | 166 prefs::kEasyUnlockAllowed, |
163 base::Bind(&EasyUnlockServiceRegular::OnPrefsChanged, | 167 base::Bind(&EasyUnlockServiceRegular::OnPrefsChanged, |
164 base::Unretained(this))); | 168 base::Unretained(this))); |
165 OnPrefsChanged(); | 169 OnPrefsChanged(); |
166 } | 170 } |
167 | 171 |
168 void EasyUnlockServiceRegular::ShutdownInternal() { | 172 void EasyUnlockServiceRegular::ShutdownInternal() { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 204 |
201 if (!success) { | 205 if (!success) { |
202 SetTurnOffFlowStatus(FAIL); | 206 SetTurnOffFlowStatus(FAIL); |
203 return; | 207 return; |
204 } | 208 } |
205 | 209 |
206 ClearRemoteDevices(); | 210 ClearRemoteDevices(); |
207 SetTurnOffFlowStatus(IDLE); | 211 SetTurnOffFlowStatus(IDLE); |
208 ReloadApp(); | 212 ReloadApp(); |
209 } | 213 } |
OLD | NEW |