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

Side by Side Diff: chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc

Issue 403343002: Rename "managed (mode|user)" to "supervised user" (part 8) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/options/supervised_user_create_confirm_handler .h" 5 #include "chrome/browser/ui/webui/options/supervised_user_create_confirm_handler .h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/value_conversions.h" 9 #include "base/value_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 SupervisedUserCreateConfirmHandler::~SupervisedUserCreateConfirmHandler() { 30 SupervisedUserCreateConfirmHandler::~SupervisedUserCreateConfirmHandler() {
31 } 31 }
32 32
33 void SupervisedUserCreateConfirmHandler::GetLocalizedValues( 33 void SupervisedUserCreateConfirmHandler::GetLocalizedValues(
34 base::DictionaryValue* localized_strings) { 34 base::DictionaryValue* localized_strings) {
35 DCHECK(localized_strings); 35 DCHECK(localized_strings);
36 36
37 static OptionsStringResource resources[] = { 37 static OptionsStringResource resources[] = {
38 { "managedUserCreatedTitle", IDS_SUPERVISED_USER_CREATED_TITLE }, 38 { "supervisedUserCreatedTitle", IDS_SUPERVISED_USER_CREATED_TITLE },
39 { "managedUserCreatedText", IDS_SUPERVISED_USER_CREATED_TEXT }, 39 { "supervisedUserCreatedText", IDS_SUPERVISED_USER_CREATED_TEXT },
40 { "managedUserCreatedDone", IDS_SUPERVISED_USER_CREATED_DONE_BUTTON }, 40 { "supervisedUserCreatedDone", IDS_SUPERVISED_USER_CREATED_DONE_BUTTON },
41 { "managedUserCreatedSwitch", IDS_SUPERVISED_USER_CREATED_SWITCH_BUTTON }, 41 { "supervisedUserCreatedSwitch",
42 IDS_SUPERVISED_USER_CREATED_SWITCH_BUTTON },
42 }; 43 };
43 44
44 SigninManagerBase* signin = 45 SigninManagerBase* signin =
45 SigninManagerFactory::GetForProfile(Profile::FromWebUI(web_ui())); 46 SigninManagerFactory::GetForProfile(Profile::FromWebUI(web_ui()));
46 if (signin) { 47 if (signin) {
47 localized_strings->SetString("custodianEmail", 48 localized_strings->SetString("custodianEmail",
48 signin->GetAuthenticatedUsername()); 49 signin->GetAuthenticatedUsername());
49 } else { 50 } else {
50 localized_strings->SetString("custodianEmail", std::string()); 51 localized_strings->SetString("custodianEmail", std::string());
51 } 52 }
(...skipping 30 matching lines...) Expand all
82 83
83 profiles::FindOrCreateNewWindowForProfile( 84 profiles::FindOrCreateNewWindowForProfile(
84 profile, 85 profile,
85 chrome::startup::IS_PROCESS_STARTUP, 86 chrome::startup::IS_PROCESS_STARTUP,
86 chrome::startup::IS_FIRST_RUN, 87 chrome::startup::IS_FIRST_RUN,
87 desktop_type, 88 desktop_type,
88 false); 89 false);
89 } 90 }
90 91
91 } // namespace options 92 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698