Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: chrome/browser/ui/webui/signin/signin_create_profile_handler.cc

Issue 1842703004: Revert "MD user manager (learn more page, user manager tutorial)" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/signin/md_user_manager_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/md_user_manager_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698