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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1536593004: Settings People Revamp: Implement Chrome Profile name/icon selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn build Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 IDS_SETTINGS_AUTOFILL_DETAIL); 440 IDS_SETTINGS_AUTOFILL_DETAIL);
441 html_source->AddLocalizedString("passwords", IDS_SETTINGS_PASSWORDS); 441 html_source->AddLocalizedString("passwords", IDS_SETTINGS_PASSWORDS);
442 html_source->AddLocalizedString("passwordsDetail", 442 html_source->AddLocalizedString("passwordsDetail",
443 IDS_SETTINGS_PASSWORDS_DETAIL); 443 IDS_SETTINGS_PASSWORDS_DETAIL);
444 } 444 }
445 445
446 void AddPeopleStrings(content::WebUIDataSource* html_source) { 446 void AddPeopleStrings(content::WebUIDataSource* html_source) {
447 html_source->AddLocalizedString("peoplePageTitle", IDS_SETTINGS_PEOPLE); 447 html_source->AddLocalizedString("peoplePageTitle", IDS_SETTINGS_PEOPLE);
448 html_source->AddLocalizedString("manageOtherPeople", 448 html_source->AddLocalizedString("manageOtherPeople",
449 IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE); 449 IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE);
450
451 #if !defined(OS_CHROMEOS)
452 html_source->AddLocalizedString("editPerson", IDS_SETTINGS_EDIT_PERSON);
453 #endif
454
450 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW); 455 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW);
451 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN); 456 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN);
452 html_source->AddLocalizedString("syncDisconnect", 457 html_source->AddLocalizedString("syncDisconnect",
453 IDS_SETTINGS_SYNC_DISCONNECT); 458 IDS_SETTINGS_SYNC_DISCONNECT);
454 html_source->AddLocalizedString("syncDisconnectTitle", 459 html_source->AddLocalizedString("syncDisconnectTitle",
455 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); 460 IDS_SETTINGS_SYNC_DISCONNECT_TITLE);
456 std::string disconnect_help_url = 461 std::string disconnect_help_url =
457 google_util::AppendGoogleLocaleParam( 462 google_util::AppendGoogleLocaleParam(
458 GURL(chrome::kSyncGoogleDashboardURL), 463 GURL(chrome::kSyncGoogleDashboardURL),
459 g_browser_process->GetApplicationLocale()) 464 g_browser_process->GetApplicationLocale())
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 AddSiteSettingsStrings(html_source); 807 AddSiteSettingsStrings(html_source);
803 AddUsersStrings(html_source); 808 AddUsersStrings(html_source);
804 AddWebContentStrings(html_source); 809 AddWebContentStrings(html_source);
805 810
806 policy_indicator::AddLocalizedStrings(html_source); 811 policy_indicator::AddLocalizedStrings(html_source);
807 812
808 html_source->SetJsonPath(kLocalizedStringsFile); 813 html_source->SetJsonPath(kLocalizedStringsFile);
809 } 814 }
810 815
811 } // namespace settings 816 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698