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

Side by Side Diff: chromeos/login/auth/login_performer.cc

Issue 2784273003: Implement a basic UI flow for cryptohome encryption migration. (Closed)
Patch Set: Address review comments. Created 3 years, 8 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
« no previous file with comments | « chromeos/login/auth/login_performer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chromeos/login/auth/login_performer.h" 5 #include "chromeos/login/auth/login_performer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void LoginPerformer::OnPasswordChangeDetected() { 100 void LoginPerformer::OnPasswordChangeDetected() {
101 password_changed_ = true; 101 password_changed_ = true;
102 password_changed_callback_count_++; 102 password_changed_callback_count_++;
103 if (delegate_) { 103 if (delegate_) {
104 delegate_->OnPasswordChangeDetected(); 104 delegate_->OnPasswordChangeDetected();
105 } else { 105 } else {
106 NOTREACHED(); 106 NOTREACHED();
107 } 107 }
108 } 108 }
109 109
110 void LoginPerformer::OnOldEncryptionDetected() { 110 void LoginPerformer::OnOldEncryptionDetected(const UserContext& user_context) {
111 DCHECK(task_runner_->RunsTasksOnCurrentThread()); 111 DCHECK(task_runner_->RunsTasksOnCurrentThread());
112 112
113 if (delegate_) 113 if (delegate_)
114 delegate_->OnOldEncryptionDetected(); 114 delegate_->OnOldEncryptionDetected(user_context);
115 else 115 else
116 NOTREACHED(); 116 NOTREACHED();
117 } 117 }
118 118
119 //////////////////////////////////////////////////////////////////////////////// 119 ////////////////////////////////////////////////////////////////////////////////
120 // LoginPerformer, public: 120 // LoginPerformer, public:
121 121
122 void LoginPerformer::NotifyWhitelistCheckFailure() { 122 void LoginPerformer::NotifyWhitelistCheckFailure() {
123 if (delegate_) 123 if (delegate_)
124 delegate_->WhiteListCheckFailed( 124 delegate_->WhiteListCheckFailed(
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } else { 305 } else {
306 NOTREACHED(); 306 NOTREACHED();
307 } 307 }
308 user_context_.ClearSecrets(); 308 user_context_.ClearSecrets();
309 } 309 }
310 310
311 void LoginPerformer::EnsureAuthenticator() { 311 void LoginPerformer::EnsureAuthenticator() {
312 authenticator_ = CreateAuthenticator(); 312 authenticator_ = CreateAuthenticator();
313 } 313 }
314 } // namespace chromeos 314 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login/auth/login_performer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698