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

Side by Side Diff: chrome/browser/signin/easy_unlock_service_regular.cc

Issue 585213002: [Easy signin] Wire up userClick auth attempt to easy unlock app and back (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@easy_signin_focused_user_changed_observer
Patch Set: fix screenlock private test Created 6 years, 3 months 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 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_service_regular.h ('k') | chrome/browser/signin/easy_unlock_service_signin_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698