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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 l10n_util::GetStringUTF16(IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TITLE)); | 79 l10n_util::GetStringUTF16(IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TITLE)); |
80 localized_strings->SetString( | 80 localized_strings->SetString( |
81 "supervisedUserLearnMoreDone", | 81 "supervisedUserLearnMoreDone", |
82 l10n_util::GetStringUTF16( | 82 l10n_util::GetStringUTF16( |
83 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_DONE_BUTTON)); | 83 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_DONE_BUTTON)); |
84 localized_strings->SetString( | 84 localized_strings->SetString( |
85 "supervisedUserLearnMoreText", | 85 "supervisedUserLearnMoreText", |
86 l10n_util::GetStringFUTF16( | 86 l10n_util::GetStringFUTF16( |
87 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TEXT, | 87 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TEXT, |
88 base::ASCIIToUTF16( | 88 base::ASCIIToUTF16( |
89 chrome::kLegacySupervisedUserManagementURL), | |
90 base::ASCIIToUTF16( | |
91 chrome::kLegacySupervisedUserManagementDisplayURL))); | 89 chrome::kLegacySupervisedUserManagementDisplayURL))); |
92 } | 90 } |
93 | 91 |
94 void SigninCreateProfileHandler::RegisterMessages() { | 92 void SigninCreateProfileHandler::RegisterMessages() { |
95 #if defined(ENABLE_SUPERVISED_USERS) | 93 #if defined(ENABLE_SUPERVISED_USERS) |
96 // Cancellation is only supported for supervised users. | 94 // Cancellation is only supported for supervised users. |
97 web_ui()->RegisterMessageCallback( | 95 web_ui()->RegisterMessageCallback( |
98 "cancelCreateProfile", | 96 "cancelCreateProfile", |
99 base::Bind(&SigninCreateProfileHandler::HandleCancelProfileCreation, | 97 base::Bind(&SigninCreateProfileHandler::HandleCancelProfileCreation, |
100 base::Unretained(this))); | 98 base::Unretained(this))); |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 DCHECK_EQ(SUPERVISED_PROFILE_IMPORT, profile_creation_type_); | 622 DCHECK_EQ(SUPERVISED_PROFILE_IMPORT, profile_creation_type_); |
625 UMA_HISTOGRAM_ENUMERATION("Profile.SupervisedProfileImportError", | 623 UMA_HISTOGRAM_ENUMERATION("Profile.SupervisedProfileImportError", |
626 error_state, GoogleServiceAuthError::NUM_STATES); | 624 error_state, GoogleServiceAuthError::NUM_STATES); |
627 UMA_HISTOGRAM_MEDIUM_TIMES( | 625 UMA_HISTOGRAM_MEDIUM_TIMES( |
628 "Profile.SupervisedProfileTotalImportTime", | 626 "Profile.SupervisedProfileTotalImportTime", |
629 base::TimeTicks::Now() - profile_creation_start_time_); | 627 base::TimeTicks::Now() - profile_creation_start_time_); |
630 } | 628 } |
631 } | 629 } |
632 | 630 |
633 #endif | 631 #endif |
OLD | NEW |