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

Side by Side Diff: chrome/browser/chromeos/login/user.cc

Issue 143873012: Add local state flag to force online login for a user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation. Created 6 years, 11 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 | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/user_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/user.h" 5 #include "chrome/browser/chromeos/login/user.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 return new RetailModeUser; 219 return new RetailModeUser;
220 } 220 }
221 221
222 User* User::CreatePublicAccountUser(const std::string& email) { 222 User* User::CreatePublicAccountUser(const std::string& email) {
223 return new PublicAccountUser(email); 223 return new PublicAccountUser(email);
224 } 224 }
225 225
226 User::User(const std::string& email) 226 User::User(const std::string& email)
227 : email_(email), 227 : email_(email),
228 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), 228 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN),
229 force_online_signin_(false),
229 image_index_(kInvalidImageIndex), 230 image_index_(kInvalidImageIndex),
230 image_is_stub_(false), 231 image_is_stub_(false),
231 image_is_loading_(false), 232 image_is_loading_(false),
232 can_lock_(false), 233 can_lock_(false),
233 is_logged_in_(false), 234 is_logged_in_(false),
234 is_active_(false), 235 is_active_(false),
235 profile_is_created_(false) { 236 profile_is_created_(false) {
236 } 237 }
237 238
238 User::~User() {} 239 User::~User() {}
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 case USER_TYPE_LOCALLY_MANAGED: 344 case USER_TYPE_LOCALLY_MANAGED:
344 case USER_TYPE_KIOSK_APP: 345 case USER_TYPE_KIOSK_APP:
345 return false; 346 return false;
346 default: 347 default:
347 NOTREACHED(); 348 NOTREACHED();
348 } 349 }
349 return false; 350 return false;
350 } 351 }
351 352
352 } // namespace chromeos 353 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698