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

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

Issue 2189163002: Add remove non-device-owner user removal confirmation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/user_manager_screen_handler.h" 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 l10n_util::GetStringUTF16( 799 l10n_util::GetStringUTF16(
800 IDS_LOGIN_POD_USER_REMOVE_WARNING_SYNC_NOSTATS)); 800 IDS_LOGIN_POD_USER_REMOVE_WARNING_SYNC_NOSTATS));
801 localized_strings->SetString("removeUserWarningTextSyncCalculating", 801 localized_strings->SetString("removeUserWarningTextSyncCalculating",
802 l10n_util::GetStringUTF16( 802 l10n_util::GetStringUTF16(
803 IDS_LOGIN_POD_USER_REMOVE_WARNING_SYNC_CALCULATING)); 803 IDS_LOGIN_POD_USER_REMOVE_WARNING_SYNC_CALCULATING));
804 localized_strings->SetString("removeLegacySupervisedUserWarningText", 804 localized_strings->SetString("removeLegacySupervisedUserWarningText",
805 l10n_util::GetStringFUTF16( 805 l10n_util::GetStringFUTF16(
806 IDS_LOGIN_POD_LEGACY_SUPERVISED_USER_REMOVE_WARNING, 806 IDS_LOGIN_POD_LEGACY_SUPERVISED_USER_REMOVE_WARNING,
807 base::UTF8ToUTF16( 807 base::UTF8ToUTF16(
808 chrome::kLegacySupervisedUserManagementDisplayURL))); 808 chrome::kLegacySupervisedUserManagementDisplayURL)));
809 localized_strings->SetString(
810 "removeNonOwnerUserWarningText",
811 l10n_util::GetStringUTF16(IDS_LOGIN_POD_NON_OWNER_USER_REMOVE_WARNING));
809 812
810 // Strings needed for the User Manager tutorial slides. 813 // Strings needed for the User Manager tutorial slides.
811 localized_strings->SetString("tutorialNext", 814 localized_strings->SetString("tutorialNext",
812 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_NEXT)); 815 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_NEXT));
813 localized_strings->SetString("tutorialDone", 816 localized_strings->SetString("tutorialDone",
814 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_DONE)); 817 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_DONE));
815 localized_strings->SetString("slideWelcomeTitle", 818 localized_strings->SetString("slideWelcomeTitle",
816 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_SLIDE_INTRO_TITLE)); 819 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_SLIDE_INTRO_TITLE));
817 localized_strings->SetString("slideWelcomeText", 820 localized_strings->SetString("slideWelcomeText",
818 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_SLIDE_INTRO_TEXT)); 821 l10n_util::GetStringUTF16(IDS_USER_MANAGER_TUTORIAL_SLIDE_INTRO_TEXT));
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 Profile* profile, Profile::CreateStatus profile_create_status) { 1018 Profile* profile, Profile::CreateStatus profile_create_status) {
1016 Browser* browser = chrome::FindAnyBrowser(profile, false); 1019 Browser* browser = chrome::FindAnyBrowser(profile, false);
1017 if (browser && browser->window()) { 1020 if (browser && browser->window()) {
1018 OnBrowserWindowReady(browser); 1021 OnBrowserWindowReady(browser);
1019 } else { 1022 } else {
1020 registrar_.Add(this, 1023 registrar_.Add(this,
1021 chrome::NOTIFICATION_BROWSER_WINDOW_READY, 1024 chrome::NOTIFICATION_BROWSER_WINDOW_READY,
1022 content::NotificationService::AllSources()); 1025 content::NotificationService::AllSources());
1023 } 1026 }
1024 } 1027 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698