| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/signin/signin_create_profile_handler.h" | 5 #include "chrome/browser/ui/webui/signin/signin_create_profile_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 l10n_util::GetStringUTF16(IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TITLE)); | 77 l10n_util::GetStringUTF16(IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TITLE)); |
| 78 localized_strings->SetString( | 78 localized_strings->SetString( |
| 79 "supervisedUserLearnMoreDone", | 79 "supervisedUserLearnMoreDone", |
| 80 l10n_util::GetStringUTF16( | 80 l10n_util::GetStringUTF16( |
| 81 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_DONE_BUTTON)); | 81 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_DONE_BUTTON)); |
| 82 localized_strings->SetString( | 82 localized_strings->SetString( |
| 83 "supervisedUserLearnMoreText", | 83 "supervisedUserLearnMoreText", |
| 84 l10n_util::GetStringFUTF16( | 84 l10n_util::GetStringFUTF16( |
| 85 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TEXT, | 85 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TEXT, |
| 86 base::ASCIIToUTF16( | 86 base::ASCIIToUTF16( |
| 87 chrome::kLegacySupervisedUserManagementURL), |
| 88 base::ASCIIToUTF16( |
| 87 chrome::kLegacySupervisedUserManagementDisplayURL))); | 89 chrome::kLegacySupervisedUserManagementDisplayURL))); |
| 88 } | 90 } |
| 89 | 91 |
| 90 void SigninCreateProfileHandler::RegisterMessages() { | 92 void SigninCreateProfileHandler::RegisterMessages() { |
| 91 #if defined(ENABLE_SUPERVISED_USERS) | 93 #if defined(ENABLE_SUPERVISED_USERS) |
| 92 // Cancellation is only supported for supervised users. | 94 // Cancellation is only supported for supervised users. |
| 93 web_ui()->RegisterMessageCallback( | 95 web_ui()->RegisterMessageCallback( |
| 94 "cancelCreateProfile", | 96 "cancelCreateProfile", |
| 95 base::Bind(&SigninCreateProfileHandler::HandleCancelProfileCreation, | 97 base::Bind(&SigninCreateProfileHandler::HandleCancelProfileCreation, |
| 96 base::Unretained(this))); | 98 base::Unretained(this))); |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 DCHECK_EQ(SUPERVISED_PROFILE_IMPORT, profile_creation_type_); | 619 DCHECK_EQ(SUPERVISED_PROFILE_IMPORT, profile_creation_type_); |
| 618 UMA_HISTOGRAM_ENUMERATION("Profile.SupervisedProfileImportError", | 620 UMA_HISTOGRAM_ENUMERATION("Profile.SupervisedProfileImportError", |
| 619 error_state, GoogleServiceAuthError::NUM_STATES); | 621 error_state, GoogleServiceAuthError::NUM_STATES); |
| 620 UMA_HISTOGRAM_MEDIUM_TIMES( | 622 UMA_HISTOGRAM_MEDIUM_TIMES( |
| 621 "Profile.SupervisedProfileTotalImportTime", | 623 "Profile.SupervisedProfileTotalImportTime", |
| 622 base::TimeTicks::Now() - profile_creation_start_time_); | 624 base::TimeTicks::Now() - profile_creation_start_time_); |
| 623 } | 625 } |
| 624 } | 626 } |
| 625 | 627 |
| 626 #endif | 628 #endif |
| OLD | NEW |