| OLD | NEW |
| 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/ui/webui/chromeos/login/enrollment_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // EnrollmentScreenHandler, public ------------------------------ | 71 // EnrollmentScreenHandler, public ------------------------------ |
| 72 | 72 |
| 73 EnrollmentScreenHandler::EnrollmentScreenHandler() | 73 EnrollmentScreenHandler::EnrollmentScreenHandler() |
| 74 : BaseScreenHandler(kJsScreenPath), | 74 : BaseScreenHandler(kJsScreenPath), |
| 75 controller_(NULL), | 75 controller_(NULL), |
| 76 show_on_init_(false), | 76 show_on_init_(false), |
| 77 is_auto_enrollment_(false), | 77 is_auto_enrollment_(false), |
| 78 can_exit_enrollment_(true), | 78 can_exit_enrollment_(true), |
| 79 browsing_data_remover_(NULL) { | 79 browsing_data_remover_(NULL) { |
| 80 set_async_assets_load_id(OobeUI::kScreenOobeEnrollment); |
| 80 } | 81 } |
| 81 | 82 |
| 82 EnrollmentScreenHandler::~EnrollmentScreenHandler() { | 83 EnrollmentScreenHandler::~EnrollmentScreenHandler() { |
| 83 if (browsing_data_remover_) | 84 if (browsing_data_remover_) |
| 84 browsing_data_remover_->RemoveObserver(this); | 85 browsing_data_remover_->RemoveObserver(this); |
| 85 } | 86 } |
| 86 | 87 |
| 87 // EnrollmentScreenHandler, WebUIMessageHandler implementation -- | 88 // EnrollmentScreenHandler, WebUIMessageHandler implementation -- |
| 88 | 89 |
| 89 void EnrollmentScreenHandler::RegisterMessages() { | 90 void EnrollmentScreenHandler::RegisterMessages() { |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 DictionaryValue screen_data; | 388 DictionaryValue screen_data; |
| 388 screen_data.SetString("signin_url", kGaiaExtStartPage); | 389 screen_data.SetString("signin_url", kGaiaExtStartPage); |
| 389 screen_data.SetString("gaiaUrl", GaiaUrls::GetInstance()->gaia_url().spec()); | 390 screen_data.SetString("gaiaUrl", GaiaUrls::GetInstance()->gaia_url().spec()); |
| 390 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); | 391 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); |
| 391 screen_data.SetBoolean("prevent_cancellation", !can_exit_enrollment_); | 392 screen_data.SetBoolean("prevent_cancellation", !can_exit_enrollment_); |
| 392 | 393 |
| 393 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); | 394 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); |
| 394 } | 395 } |
| 395 | 396 |
| 396 } // namespace chromeos | 397 } // namespace chromeos |
| OLD | NEW |