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

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

Issue 2136103008: Makes 'Disconnect Account' overlay in chrome://settings accessible thru a URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 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/resources/options/options.js ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/options/manage_profile_handler.h" 5 #include "chrome/browser/ui/webui/options/manage_profile_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX }, 116 { "createProfileShortcutCheckbox", IDS_PROFILES_CREATE_SHORTCUT_CHECKBOX },
117 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON }, 117 { "createProfileShortcutButton", IDS_PROFILES_CREATE_SHORTCUT_BUTTON },
118 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON }, 118 { "removeProfileShortcutButton", IDS_PROFILES_REMOVE_SHORTCUT_BUTTON },
119 { "importExistingSupervisedUserLink", 119 { "importExistingSupervisedUserLink",
120 IDS_IMPORT_EXISTING_LEGACY_SUPERVISED_USER_TITLE }, 120 IDS_IMPORT_EXISTING_LEGACY_SUPERVISED_USER_TITLE },
121 }; 121 };
122 122
123 RegisterStrings(localized_strings, resources, arraysize(resources)); 123 RegisterStrings(localized_strings, resources, arraysize(resources));
124 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE); 124 RegisterTitle(localized_strings, "manageProfile", IDS_PROFILES_MANAGE_TITLE);
125 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE); 125 RegisterTitle(localized_strings, "createProfile", IDS_PROFILES_CREATE_TITLE);
126 RegisterTitle(localized_strings, "disconnectAccount",
127 IDS_DISCONNECT_ACCOUNT_TITLE);
126 128
127 base::string16 supervised_user_dashboard_url = 129 base::string16 supervised_user_dashboard_url =
128 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementURL); 130 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementURL);
129 base::string16 supervised_user_dashboard_display = 131 base::string16 supervised_user_dashboard_display =
130 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL); 132 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL);
131 localized_strings->SetString("deleteSupervisedProfileAddendum", 133 localized_strings->SetString("deleteSupervisedProfileAddendum",
132 l10n_util::GetStringFUTF16(IDS_PROFILES_DELETE_LEGACY_SUPERVISED_ADDENDUM, 134 l10n_util::GetStringFUTF16(IDS_PROFILES_DELETE_LEGACY_SUPERVISED_ADDENDUM,
133 supervised_user_dashboard_url, 135 supervised_user_dashboard_url,
134 supervised_user_dashboard_display)); 136 supervised_user_dashboard_display));
135 137
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 540
539 // Update the UI buttons. 541 // Update the UI buttons.
540 OnHasProfileShortcuts(false); 542 OnHasProfileShortcuts(false);
541 } 543 }
542 544
543 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) { 545 void ManageProfileHandler::RefreshGaiaPicture(const base::ListValue* args) {
544 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui())); 546 profiles::UpdateGaiaProfileInfoIfNeeded(Profile::FromWebUI(web_ui()));
545 } 547 }
546 548
547 } // namespace options 549 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698