| OLD | NEW |
| 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 Loading... |
| 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 | |
| 456 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW); | 451 html_source->AddLocalizedString("syncOverview", IDS_SETTINGS_SYNC_OVERVIEW); |
| 457 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN); | 452 html_source->AddLocalizedString("syncSignin", IDS_SETTINGS_SYNC_SIGNIN); |
| 458 html_source->AddLocalizedString("syncDisconnect", | 453 html_source->AddLocalizedString("syncDisconnect", |
| 459 IDS_SETTINGS_SYNC_DISCONNECT); | 454 IDS_SETTINGS_SYNC_DISCONNECT); |
| 460 html_source->AddLocalizedString("syncDisconnectTitle", | 455 html_source->AddLocalizedString("syncDisconnectTitle", |
| 461 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); | 456 IDS_SETTINGS_SYNC_DISCONNECT_TITLE); |
| 462 std::string disconnect_help_url = | 457 std::string disconnect_help_url = |
| 463 google_util::AppendGoogleLocaleParam( | 458 google_util::AppendGoogleLocaleParam( |
| 464 GURL(chrome::kSyncGoogleDashboardURL), | 459 GURL(chrome::kSyncGoogleDashboardURL), |
| 465 g_browser_process->GetApplicationLocale()) | 460 g_browser_process->GetApplicationLocale()) |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 AddSiteSettingsStrings(html_source); | 803 AddSiteSettingsStrings(html_source); |
| 809 AddUsersStrings(html_source); | 804 AddUsersStrings(html_source); |
| 810 AddWebContentStrings(html_source); | 805 AddWebContentStrings(html_source); |
| 811 | 806 |
| 812 policy_indicator::AddLocalizedStrings(html_source); | 807 policy_indicator::AddLocalizedStrings(html_source); |
| 813 | 808 |
| 814 html_source->SetJsonPath(kLocalizedStringsFile); | 809 html_source->SetJsonPath(kLocalizedStringsFile); |
| 815 } | 810 } |
| 816 | 811 |
| 817 } // namespace settings | 812 } // namespace settings |
| OLD | NEW |