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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_login_flow.cc

Issue 1036723003: favor DCHECK_CURRENTLY_ON for better logs in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/chromeos/login/supervised/supervised_user_login_flow.h" 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) { 65 bool SupervisedUserLoginFlow::HandleLoginFailure(const AuthFailure& failure) {
66 return false; 66 return false;
67 } 67 }
68 68
69 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() { 69 bool SupervisedUserLoginFlow::HandlePasswordChangeDetected() {
70 return false; 70 return false;
71 } 71 }
72 72
73 void SupervisedUserLoginFlow::OnSyncSetupDataLoaded( 73 void SupervisedUserLoginFlow::OnSyncSetupDataLoaded(
74 const std::string& token) { 74 const std::string& token) {
75 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 75 DCHECK_CURRENTLY_ON(BrowserThread::UI);
76 ConfigureSync(token); 76 ConfigureSync(token);
77 } 77 }
78 78
79 void SupervisedUserLoginFlow::ConfigureSync(const std::string& token) { 79 void SupervisedUserLoginFlow::ConfigureSync(const std::string& token) {
80 data_loaded_ = true; 80 data_loaded_ = true;
81 81
82 // TODO(antrim): add error handling (no token loaded). 82 // TODO(antrim): add error handling (no token loaded).
83 // See also: http://crbug.com/312751 83 // See also: http://crbug.com/312751
84 ChromeUserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken( 84 ChromeUserManager::Get()->GetSupervisedUserManager()->ConfigureSyncWithToken(
85 profile_, token); 85 profile_, token);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void SupervisedUserLoginFlow::LaunchExtraSteps( 260 void SupervisedUserLoginFlow::LaunchExtraSteps(
261 Profile* profile) { 261 Profile* profile) {
262 profile_ = profile; 262 profile_ = profile;
263 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken( 263 ChromeUserManager::Get()->GetSupervisedUserManager()->LoadSupervisedUserToken(
264 profile, 264 profile,
265 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded, 265 base::Bind(&SupervisedUserLoginFlow::OnSyncSetupDataLoaded,
266 weak_factory_.GetWeakPtr())); 266 weak_factory_.GetWeakPtr()));
267 } 267 }
268 268
269 } // namespace chromeos 269 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698