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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/auto_enrollment_check_screen_handler.cc

Issue 2701023003: cros: Move call js prefix out of ctor. (Closed)
Patch Set: 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 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/ui/webui/chromeos/login/auto_enrollment_check_screen_ha ndler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/auto_enrollment_check_screen_ha ndler.h"
6 6
7 #include "chrome/browser/chromeos/login/oobe_screen.h" 7 #include "chrome/browser/chromeos/login/oobe_screen.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "components/login/localized_values_builder.h" 9 #include "components/login/localized_values_builder.h"
10 10
11 namespace { 11 namespace {
12 12
13 const char kJsScreenPath[] = "login.AutoEnrollmentCheckScreen"; 13 const char kJsScreenPath[] = "login.AutoEnrollmentCheckScreen";
14 14
15 } // namespace 15 } // namespace
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 AutoEnrollmentCheckScreenHandler::AutoEnrollmentCheckScreenHandler() 19 AutoEnrollmentCheckScreenHandler::AutoEnrollmentCheckScreenHandler() {
20 : BaseScreenHandler(kJsScreenPath), 20 set_call_js_prefix(kJsScreenPath);
21 delegate_(NULL),
22 show_on_init_(false) {
23 } 21 }
24 22
25 AutoEnrollmentCheckScreenHandler::~AutoEnrollmentCheckScreenHandler() { 23 AutoEnrollmentCheckScreenHandler::~AutoEnrollmentCheckScreenHandler() {
26 if (delegate_) 24 if (delegate_)
27 delegate_->OnActorDestroyed(this); 25 delegate_->OnActorDestroyed(this);
28 } 26 }
29 27
30 void AutoEnrollmentCheckScreenHandler::Show() { 28 void AutoEnrollmentCheckScreenHandler::Show() {
31 if (!page_is_ready()) { 29 if (!page_is_ready()) {
32 show_on_init_ = true; 30 show_on_init_ = true;
(...skipping 22 matching lines...) Expand all
55 53
56 if (show_on_init_) { 54 if (show_on_init_) {
57 Show(); 55 Show();
58 show_on_init_ = false; 56 show_on_init_ = false;
59 } 57 }
60 } 58 }
61 59
62 void AutoEnrollmentCheckScreenHandler::RegisterMessages() {} 60 void AutoEnrollmentCheckScreenHandler::RegisterMessages() {}
63 61
64 } // namespace chromeos 62 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698