| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 SigninCreateProfileHandler::~SigninCreateProfileHandler() { | 50 SigninCreateProfileHandler::~SigninCreateProfileHandler() { |
| 51 #if defined(ENABLE_SUPERVISED_USERS) | 51 #if defined(ENABLE_SUPERVISED_USERS) |
| 52 // Cancellation is only supported for supervised users. | 52 // Cancellation is only supported for supervised users. |
| 53 CancelProfileRegistration(false); | 53 CancelProfileRegistration(false); |
| 54 #endif | 54 #endif |
| 55 } | 55 } |
| 56 | 56 |
| 57 void SigninCreateProfileHandler::GetLocalizedValues( | 57 void SigninCreateProfileHandler::GetLocalizedValues( |
| 58 base::DictionaryValue* localized_strings) { | 58 base::DictionaryValue* localized_strings) { |
| 59 localized_strings->SetString( | 59 localized_strings->SetString( |
| 60 "manageProfilesSupervisedSignedInLabel", |
| 61 l10n_util::GetStringUTF16( |
| 62 IDS_PROFILES_CREATE_SUPERVISED_MULTI_SIGNED_IN_LABEL)); |
| 63 localized_strings->SetString( |
| 60 "manageProfilesSupervisedNotSignedIn", | 64 "manageProfilesSupervisedNotSignedIn", |
| 61 l10n_util::GetStringUTF16( | 65 l10n_util::GetStringUTF16( |
| 62 IDS_PROFILES_CREATE_SUPERVISED_NOT_SIGNED_IN_HTML)); | 66 IDS_PROFILES_CREATE_SUPERVISED_NOT_SIGNED_IN_HTML)); |
| 63 localized_strings->SetString("createProfileConfirm", | 67 localized_strings->SetString("createProfileConfirm", |
| 64 l10n_util::GetStringUTF16(IDS_SAVE)); | 68 l10n_util::GetStringUTF16(IDS_SAVE)); |
| 65 localized_strings->SetString("learnMore", | 69 localized_strings->SetString("learnMore", |
| 66 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); | 70 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); |
| 67 localized_strings->SetString( | 71 localized_strings->SetString( |
| 68 "createProfileTitle", | 72 "createProfileTitle", |
| 69 l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_TITLE)); | 73 l10n_util::GetStringUTF16(IDS_PROFILES_CREATE_TITLE)); |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 DCHECK_EQ(SUPERVISED_PROFILE_IMPORT, profile_creation_type_); | 617 DCHECK_EQ(SUPERVISED_PROFILE_IMPORT, profile_creation_type_); |
| 614 UMA_HISTOGRAM_ENUMERATION("Profile.SupervisedProfileImportError", | 618 UMA_HISTOGRAM_ENUMERATION("Profile.SupervisedProfileImportError", |
| 615 error_state, GoogleServiceAuthError::NUM_STATES); | 619 error_state, GoogleServiceAuthError::NUM_STATES); |
| 616 UMA_HISTOGRAM_MEDIUM_TIMES( | 620 UMA_HISTOGRAM_MEDIUM_TIMES( |
| 617 "Profile.SupervisedProfileTotalImportTime", | 621 "Profile.SupervisedProfileTotalImportTime", |
| 618 base::TimeTicks::Now() - profile_creation_start_time_); | 622 base::TimeTicks::Now() - profile_creation_start_time_); |
| 619 } | 623 } |
| 620 } | 624 } |
| 621 | 625 |
| 622 #endif | 626 #endif |
| OLD | NEW |