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

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

Issue 378513005: [Athena] Extract Chrome OS authentication stack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix includes in one more test Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/login/auth/user_context.h ('k') | chromeos/login/user_names.h » ('j') | 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 "chrome/browser/chromeos/login/auth/user_context.h" 5 #include "chromeos/login/auth/user_context.h"
6 6 #include "chromeos/login/user_names.h"
7 #include "chrome/browser/chromeos/login/helper.h"
8 7
9 namespace chromeos { 8 namespace chromeos {
10 9
11 UserContext::UserContext() 10 UserContext::UserContext()
12 : is_using_oauth_(true), 11 : is_using_oauth_(true),
13 auth_flow_(AUTH_FLOW_OFFLINE), 12 auth_flow_(AUTH_FLOW_OFFLINE),
14 user_type_(user_manager::USER_TYPE_REGULAR) { 13 user_type_(user_manager::USER_TYPE_REGULAR) {
15 } 14 }
16 15
17 UserContext::UserContext(const UserContext& other) 16 UserContext::UserContext(const UserContext& other)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void UserContext::SetUserType(user_manager::UserType user_type) { 120 void UserContext::SetUserType(user_manager::UserType user_type) {
122 user_type_ = user_type; 121 user_type_ = user_type;
123 } 122 }
124 123
125 void UserContext::ClearSecrets() { 124 void UserContext::ClearSecrets() {
126 key_.ClearSecret(); 125 key_.ClearSecret();
127 auth_code_.clear(); 126 auth_code_.clear();
128 } 127 }
129 128
130 } // namespace chromeos 129 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login/auth/user_context.h ('k') | chromeos/login/user_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698