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/enterprise_oauth_enrollment_scr
een_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr
een_handler.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/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "chrome/browser/browsing_data_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
14 #include "chrome/browser/browsing_data_remover.h" | 14 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
15 #include "chrome/browser/chromeos/login/login_utils.h" | 15 #include "chrome/browser/chromeos/login/login_utils.h" |
16 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" | 16 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" |
17 #include "chrome/browser/policy/auto_enrollment_client.h" | 17 #include "chrome/browser/policy/auto_enrollment_client.h" |
18 #include "chrome/browser/policy/enterprise_metrics.h" | 18 #include "chrome/browser/policy/enterprise_metrics.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/net/gaia/gaia_auth_util.h" | 21 #include "chrome/common/net/gaia/gaia_auth_util.h" |
22 #include "chrome/common/net/gaia/gaia_constants.h" | 22 #include "chrome/common/net/gaia/gaia_constants.h" |
23 #include "chrome/common/net/gaia/gaia_urls.h" | 23 #include "chrome/common/net/gaia/gaia_urls.h" |
24 #include "chrome/common/net/gaia/google_service_auth_error.h" | 24 #include "chrome/common/net/gaia/google_service_auth_error.h" |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 controller_->OnConfirmationClosed(back_to_signin); | 549 controller_->OnConfirmationClosed(back_to_signin); |
550 } | 550 } |
551 | 551 |
552 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { | 552 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { |
553 if (is_auto_enrollment_) | 553 if (is_auto_enrollment_) |
554 sample = policy::kMetricEnrollmentAutoFailed; | 554 sample = policy::kMetricEnrollmentAutoFailed; |
555 UMA(sample); | 555 UMA(sample); |
556 } | 556 } |
557 | 557 |
558 } // namespace chromeos | 558 } // namespace chromeos |
OLD | NEW |