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

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

Issue 2779933002: Add a screen to migrate filesystem encryption from eCryptfs to ext4 crypto. (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() {
111 DCHECK(task_runner_->RunsTasksOnCurrentThread());
112
113 if (delegate_)
114 delegate_->OnOldEncryptionDetected();
115 else
116 NOTREACHED();
117 }
118
110 //////////////////////////////////////////////////////////////////////////////// 119 ////////////////////////////////////////////////////////////////////////////////
111 // LoginPerformer, public: 120 // LoginPerformer, public:
112 121
113 void LoginPerformer::NotifyWhitelistCheckFailure() { 122 void LoginPerformer::NotifyWhitelistCheckFailure() {
114 if (delegate_) 123 if (delegate_)
115 delegate_->WhiteListCheckFailed( 124 delegate_->WhiteListCheckFailed(
116 user_context_.GetAccountId().GetUserEmail()); 125 user_context_.GetAccountId().GetUserEmail());
117 else 126 else
118 NOTREACHED(); 127 NOTREACHED();
119 } 128 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } else { 305 } else {
297 NOTREACHED(); 306 NOTREACHED();
298 } 307 }
299 user_context_.ClearSecrets(); 308 user_context_.ClearSecrets();
300 } 309 }
301 310
302 void LoginPerformer::EnsureAuthenticator() { 311 void LoginPerformer::EnsureAuthenticator() {
303 authenticator_ = CreateAuthenticator(); 312 authenticator_ = CreateAuthenticator();
304 } 313 }
305 } // 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