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/browsing_data_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
14 #include "chrome/browser/browsing_data/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/net/gaia/gaia_auth_util.h" | |
21 #include "chrome/common/net/gaia/gaia_constants.h" | |
22 #include "chrome/common/net/gaia/gaia_switches.h" | |
23 #include "chrome/common/net/gaia/gaia_urls.h" | |
24 #include "chrome/common/net/gaia/google_service_auth_error.h" | |
25 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 21 #include "google_apis/gaia/gaia_auth_util.h" |
| 22 #include "google_apis/gaia/gaia_constants.h" |
| 23 #include "google_apis/gaia/gaia_switches.h" |
| 24 #include "google_apis/gaia/gaia_urls.h" |
| 25 #include "google_apis/gaia/google_service_auth_error.h" |
26 #include "grit/chromium_strings.h" | 26 #include "grit/chromium_strings.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // Start page of GAIA authentication extension. | 32 // Start page of GAIA authentication extension. |
33 const char kGaiaExtStartPage[] = | 33 const char kGaiaExtStartPage[] = |
34 "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/main.html"; | 34 "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/main.html"; |
35 | 35 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 controller_->OnConfirmationClosed(back_to_signin); | 547 controller_->OnConfirmationClosed(back_to_signin); |
548 } | 548 } |
549 | 549 |
550 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { | 550 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { |
551 if (is_auto_enrollment_) | 551 if (is_auto_enrollment_) |
552 sample = policy::kMetricEnrollmentAutoFailed; | 552 sample = policy::kMetricEnrollmentAutoFailed; |
553 UMA(sample); | 553 UMA(sample); |
554 } | 554 } |
555 | 555 |
556 } // namespace chromeos | 556 } // namespace chromeos |
OLD | NEW |