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" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 localized_strings->SetString( | 282 localized_strings->SetString( |
283 "oauthEnrollExplain", | 283 "oauthEnrollExplain", |
284 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN)); | 284 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN)); |
285 localized_strings->SetString( | 285 localized_strings->SetString( |
286 "oauthEnrollExplainLink", | 286 "oauthEnrollExplainLink", |
287 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_LINK)); | 287 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_LINK)); |
288 localized_strings->SetString( | 288 localized_strings->SetString( |
289 "oauthEnrollExplainButton", | 289 "oauthEnrollExplainButton", |
290 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_BUTTON)); | 290 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_EXPLAIN_BUTTON)); |
291 localized_strings->SetString( | 291 localized_strings->SetString( |
292 "oauthEnrollCancelAutoEnrollment", | |
293 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO)); | |
294 localized_strings->SetString( | |
295 "oauthEnrollCancelAutoEnrollmentReally", | 292 "oauthEnrollCancelAutoEnrollmentReally", |
296 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_REALLY)); | 293 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_REALLY)); |
297 localized_strings->SetString( | 294 localized_strings->SetString( |
298 "oauthEnrollCancelAutoEnrollmentConfirm", | 295 "oauthEnrollCancelAutoEnrollmentConfirm", |
299 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_CONFIRM)); | 296 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_CONFIRM)); |
300 localized_strings->SetString( | 297 localized_strings->SetString( |
301 "oauthEnrollCancelAutoEnrollmentGoBack", | 298 "oauthEnrollCancelAutoEnrollmentGoBack", |
302 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_GO_BACK)); | 299 l10n_util::GetStringUTF16(IDS_ENTERPRISE_ENROLLMENT_CANCEL_AUTO_GO_BACK)); |
303 } | 300 } |
304 | 301 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 controller_->OnConfirmationClosed(back_to_signin); | 549 controller_->OnConfirmationClosed(back_to_signin); |
553 } | 550 } |
554 | 551 |
555 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { | 552 void EnterpriseOAuthEnrollmentScreenHandler::UMAFailure(int sample) { |
556 if (is_auto_enrollment_) | 553 if (is_auto_enrollment_) |
557 sample = policy::kMetricEnrollmentAutoFailed; | 554 sample = policy::kMetricEnrollmentAutoFailed; |
558 UMA(sample); | 555 UMA(sample); |
559 } | 556 } |
560 | 557 |
561 } // namespace chromeos | 558 } // namespace chromeos |
OLD | NEW |