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 "ash/common/system/chromeos/devicetype_utils.h" | 9 #include "ash/common/system/chromeos/devicetype_utils.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/strings/stringprintf.h" | |
16 #include "base/values.h" | 15 #include "base/values.h" |
17 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/browser_process_platform_part.h" | 17 #include "chrome/browser/browser_process_platform_part.h" |
19 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h" | 18 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h" |
20 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 19 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
21 #include "chrome/browser/chromeos/login/screens/network_error.h" | 20 #include "chrome/browser/chromeos/login/screens/network_error.h" |
22 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 21 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
23 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 22 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
24 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h" | 23 #include "chrome/browser/chromeos/policy/enrollment_status_chromeos.h" |
25 #include "chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h" | 24 #include "chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 | 660 |
662 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); | 661 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); |
663 if (first_show_) { | 662 if (first_show_) { |
664 first_show_ = false; | 663 first_show_ = false; |
665 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); | 664 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); |
666 } | 665 } |
667 histogram_helper_->OnScreenShow(); | 666 histogram_helper_->OnScreenShow(); |
668 } | 667 } |
669 | 668 |
670 } // namespace chromeos | 669 } // namespace chromeos |
OLD | NEW |