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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen.cc

Issue 2959853003: Add UI components for license type selection in ChromeOS login UI. (Closed)
Patch Set: Remove unused flex import Created 3 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
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/enrollment/enrollment_screen.h" 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 enrolling_user_domain_ = gaia::ExtractDomainName(user); 195 enrolling_user_domain_ = gaia::ExtractDomainName(user);
196 UMA(enrollment_failed_once_ ? policy::kMetricEnrollmentRestarted 196 UMA(enrollment_failed_once_ ? policy::kMetricEnrollmentRestarted
197 : policy::kMetricEnrollmentStarted); 197 : policy::kMetricEnrollmentStarted);
198 198
199 view_->ShowEnrollmentSpinnerScreen(); 199 view_->ShowEnrollmentSpinnerScreen();
200 CreateEnrollmentHelper(); 200 CreateEnrollmentHelper();
201 enrollment_helper_->EnrollUsingAuthCode( 201 enrollment_helper_->EnrollUsingAuthCode(
202 auth_code, shark_controller_ != nullptr /* fetch_additional_token */); 202 auth_code, shark_controller_ != nullptr /* fetch_additional_token */);
203 } 203 }
204 204
205 void EnrollmentScreen::OnLicenseTypeSelected(const std::string& license_type) {}
206
205 void EnrollmentScreen::OnRetry() { 207 void EnrollmentScreen::OnRetry() {
206 retry_task_.Cancel(); 208 retry_task_.Cancel();
207 ProcessRetry(); 209 ProcessRetry();
208 } 210 }
209 211
210 void EnrollmentScreen::AutomaticRetry() { 212 void EnrollmentScreen::AutomaticRetry() {
211 retry_backoff_->InformOfRequest(false); 213 retry_backoff_->InformOfRequest(false);
212 retry_task_.Reset(base::Bind(&EnrollmentScreen::ProcessRetry, 214 retry_task_.Reset(base::Bind(&EnrollmentScreen::ProcessRetry,
213 weak_ptr_factory_.GetWeakPtr())); 215 weak_ptr_factory_.GetWeakPtr()));
214 216
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 if (elapsed_timer_) 386 if (elapsed_timer_)
385 UMA_ENROLLMENT_TIME(kMetricEnrollmentTimeFailure, elapsed_timer_); 387 UMA_ENROLLMENT_TIME(kMetricEnrollmentTimeFailure, elapsed_timer_);
386 } 388 }
387 389
388 void EnrollmentScreen::JoinDomain(OnDomainJoinedCallback on_joined_callback) { 390 void EnrollmentScreen::JoinDomain(OnDomainJoinedCallback on_joined_callback) {
389 on_joined_callback_ = std::move(on_joined_callback); 391 on_joined_callback_ = std::move(on_joined_callback);
390 view_->ShowAdJoin(); 392 view_->ShowAdJoin();
391 } 393 }
392 394
393 } // namespace chromeos 395 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698