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

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

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 10 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 namespace chromeos { 68 namespace chromeos {
69 69
70 // static 70 // static
71 EnrollmentScreen* EnrollmentScreen::Get(ScreenManager* manager) { 71 EnrollmentScreen* EnrollmentScreen::Get(ScreenManager* manager) {
72 return static_cast<EnrollmentScreen*>( 72 return static_cast<EnrollmentScreen*>(
73 manager->GetScreen(OobeScreen::SCREEN_OOBE_ENROLLMENT)); 73 manager->GetScreen(OobeScreen::SCREEN_OOBE_ENROLLMENT));
74 } 74 }
75 75
76 EnrollmentScreen::EnrollmentScreen(BaseScreenDelegate* base_screen_delegate, 76 EnrollmentScreen::EnrollmentScreen(BaseScreenDelegate* base_screen_delegate,
77 EnrollmentScreenActor* actor) 77 EnrollmentScreenView* actor)
78 : BaseScreen(base_screen_delegate, OobeScreen::SCREEN_OOBE_ENROLLMENT), 78 : BaseScreen(base_screen_delegate, OobeScreen::SCREEN_OOBE_ENROLLMENT),
79 actor_(actor), 79 actor_(actor),
80 weak_ptr_factory_(this) { 80 weak_ptr_factory_(this) {
81 retry_policy_.num_errors_to_ignore = 0; 81 retry_policy_.num_errors_to_ignore = 0;
82 retry_policy_.initial_delay_ms = kInitialDelayMS; 82 retry_policy_.initial_delay_ms = kInitialDelayMS;
83 retry_policy_.multiply_factor = kMultiplyFactor; 83 retry_policy_.multiply_factor = kMultiplyFactor;
84 retry_policy_.jitter_factor = kJitterFactor; 84 retry_policy_.jitter_factor = kJitterFactor;
85 retry_policy_.maximum_backoff_ms = kMaxDelayMS; 85 retry_policy_.maximum_backoff_ms = kMaxDelayMS;
86 retry_policy_.entry_lifetime_ms = -1; 86 retry_policy_.entry_lifetime_ms = -1;
87 retry_policy_.always_use_initial_delay = true; 87 retry_policy_.always_use_initial_delay = true;
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 if (elapsed_timer_) 380 if (elapsed_timer_)
381 UMA_ENROLLMENT_TIME(kMetricEnrollmentTimeFailure, elapsed_timer_); 381 UMA_ENROLLMENT_TIME(kMetricEnrollmentTimeFailure, elapsed_timer_);
382 } 382 }
383 383
384 void EnrollmentScreen::JoinDomain(OnDomainJoinedCallback on_joined_callback) { 384 void EnrollmentScreen::JoinDomain(OnDomainJoinedCallback on_joined_callback) {
385 on_joined_callback_ = std::move(on_joined_callback); 385 on_joined_callback_ = std::move(on_joined_callback);
386 actor_->ShowAdJoin(); 386 actor_->ShowAdJoin();
387 } 387 }
388 388
389 } // namespace chromeos 389 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698