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

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

Issue 1561413003: Reland: Settings People Revamp: Implement Chrome Profile name/icon selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 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 "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 html_source->AddLocalizedString("passwordsDetail", 486 html_source->AddLocalizedString("passwordsDetail",
487 IDS_SETTINGS_PASSWORDS_DETAIL); 487 IDS_SETTINGS_PASSWORDS_DETAIL);
488 html_source->AddLocalizedString("savedPasswordsHeading", 488 html_source->AddLocalizedString("savedPasswordsHeading",
489 IDS_SETTINGS_PASSWORDS_SAVED_HEADING); 489 IDS_SETTINGS_PASSWORDS_SAVED_HEADING);
490 } 490 }
491 491
492 void AddPeopleStrings(content::WebUIDataSource* html_source) { 492 void AddPeopleStrings(content::WebUIDataSource* html_source) {
493 html_source->AddLocalizedString("peoplePageTitle", IDS_SETTINGS_PEOPLE); 493 html_source->AddLocalizedString("peoplePageTitle", IDS_SETTINGS_PEOPLE);
494 html_source->AddLocalizedString("manageOtherPeople", 494 html_source->AddLocalizedString("manageOtherPeople",
495 IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE); 495 IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE);
496
497 #if !defined(OS_CHROMEOS)
498 html_source->AddLocalizedString("editPerson", IDS_SETTINGS_EDIT_PERSON);
499 #endif
500
496 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW); 501 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW);
497 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN); 502 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN);
498 html_source->AddLocalizedString("syncDisconnect", 503 html_source->AddLocalizedString("syncDisconnect",
499 IDS_SETTINGS_SYNC_DISCONNECT); 504 IDS_SETTINGS_SYNC_DISCONNECT);
500 html_source->AddLocalizedString("syncDisconnectTitle", 505 html_source->AddLocalizedString("syncDisconnectTitle",
501 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); 506 IDS_SETTINGS_SYNC_DISCONNECT_TITLE);
502 std::string disconnect_help_url = 507 std::string disconnect_help_url =
503 google_util::AppendGoogleLocaleParam( 508 google_util::AppendGoogleLocaleParam(
504 GURL(chrome::kSyncGoogleDashboardURL), 509 GURL(chrome::kSyncGoogleDashboardURL),
505 g_browser_process->GetApplicationLocale()) 510 g_browser_process->GetApplicationLocale())
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 AddSiteSettingsStrings(html_source); 853 AddSiteSettingsStrings(html_source);
849 AddUsersStrings(html_source); 854 AddUsersStrings(html_source);
850 AddWebContentStrings(html_source); 855 AddWebContentStrings(html_source);
851 856
852 policy_indicator::AddLocalizedStrings(html_source); 857 policy_indicator::AddLocalizedStrings(html_source);
853 858
854 html_source->SetJsonPath(kLocalizedStringsFile); 859 html_source->SetJsonPath(kLocalizedStringsFile);
855 } 860 }
856 861
857 } // namespace settings 862 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698