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

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: 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 IDS_SETTINGS_AUTOFILL_DETAIL); 441 IDS_SETTINGS_AUTOFILL_DETAIL);
442 html_source->AddLocalizedString("passwords", IDS_SETTINGS_PASSWORDS); 442 html_source->AddLocalizedString("passwords", IDS_SETTINGS_PASSWORDS);
443 html_source->AddLocalizedString("passwordsDetail", 443 html_source->AddLocalizedString("passwordsDetail",
444 IDS_SETTINGS_PASSWORDS_DETAIL); 444 IDS_SETTINGS_PASSWORDS_DETAIL);
445 } 445 }
446 446
447 void AddPeopleStrings(content::WebUIDataSource* html_source) { 447 void AddPeopleStrings(content::WebUIDataSource* html_source) {
448 html_source->AddLocalizedString("peoplePageTitle", IDS_SETTINGS_PEOPLE); 448 html_source->AddLocalizedString("peoplePageTitle", IDS_SETTINGS_PEOPLE);
449 html_source->AddLocalizedString("manageOtherPeople", 449 html_source->AddLocalizedString("manageOtherPeople",
450 IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE); 450 IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE);
451
452 #if !defined(OS_CHROMEOS)
453 html_source->AddLocalizedString("editPerson", IDS_SETTINGS_EDIT_PERSON);
454 #endif
455
451 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW); 456 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW);
452 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN); 457 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN);
453 html_source->AddLocalizedString("syncDisconnect", 458 html_source->AddLocalizedString("syncDisconnect",
454 IDS_SETTINGS_SYNC_DISCONNECT); 459 IDS_SETTINGS_SYNC_DISCONNECT);
455 html_source->AddLocalizedString("syncDisconnectTitle", 460 html_source->AddLocalizedString("syncDisconnectTitle",
456 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); 461 IDS_SETTINGS_SYNC_DISCONNECT_TITLE);
457 std::string disconnect_help_url = 462 std::string disconnect_help_url =
458 google_util::AppendGoogleLocaleParam( 463 google_util::AppendGoogleLocaleParam(
459 GURL(chrome::kSyncGoogleDashboardURL), 464 GURL(chrome::kSyncGoogleDashboardURL),
460 g_browser_process->GetApplicationLocale()) 465 g_browser_process->GetApplicationLocale())
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 AddSiteSettingsStrings(html_source); 808 AddSiteSettingsStrings(html_source);
804 AddUsersStrings(html_source); 809 AddUsersStrings(html_source);
805 AddWebContentStrings(html_source); 810 AddWebContentStrings(html_source);
806 811
807 policy_indicator::AddLocalizedStrings(html_source); 812 policy_indicator::AddLocalizedStrings(html_source);
808 813
809 html_source->SetJsonPath(kLocalizedStringsFile); 814 html_source->SetJsonPath(kLocalizedStringsFile);
810 } 815 }
811 816
812 } // namespace settings 817 } // 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