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

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

Issue 1900233005: I18n the message about managing passwords online. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" 14 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/grit/chromium_strings.h" 16 #include "chrome/grit/chromium_strings.h"
17 #include "chrome/grit/generated_resources.h" 17 #include "chrome/grit/generated_resources.h"
18 #include "chrome/grit/google_chrome_strings.h" 18 #include "chrome/grit/google_chrome_strings.h"
19 #include "chrome/grit/locale_settings.h" 19 #include "chrome/grit/locale_settings.h"
20 #include "chrome/grit/settings_chromium_strings.h" 20 #include "chrome/grit/settings_chromium_strings.h"
21 #include "chrome/grit/settings_google_chrome_strings.h" 21 #include "chrome/grit/settings_google_chrome_strings.h"
22 #include "chrome/grit/settings_strings.h" 22 #include "chrome/grit/settings_strings.h"
23 #include "components/google/core/browser/google_util.h" 23 #include "components/google/core/browser/google_util.h"
24 #include "components/password_manager/core/browser/password_manager_constants.h"
24 #include "content/public/browser/web_ui_data_source.h" 25 #include "content/public/browser/web_ui_data_source.h"
25 #include "grit/components_strings.h" 26 #include "grit/components_strings.h"
26 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
27 28
28 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
29 #include "ash/system/chromeos/devicetype_utils.h" 30 #include "ash/system/chromeos/devicetype_utils.h"
30 #include "chrome/browser/chromeos/profiles/profile_helper.h" 31 #include "chrome/browser/chromeos/profiles/profile_helper.h"
31 #include "chrome/browser/signin/easy_unlock_service.h" 32 #include "chrome/browser/signin/easy_unlock_service.h"
32 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h" 33 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h"
33 #include "chromeos/chromeos_switches.h" 34 #include "chromeos/chromeos_switches.h"
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING}, 589 {"passwordExceptionsHeading", IDS_SETTINGS_PASSWORDS_EXCEPTIONS_HEADING},
589 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION}, 590 {"deletePasswordException", IDS_SETTINGS_PASSWORDS_DELETE_EXCEPTION},
590 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU}, 591 {"passwordMenu", IDS_SETTINGS_PASSWORDS_MENU},
591 {"editPassword", IDS_SETTINGS_PASSWORDS_EDIT}, 592 {"editPassword", IDS_SETTINGS_PASSWORDS_EDIT},
592 {"removePassword", IDS_SETTINGS_PASSWORDS_REMOVE}, 593 {"removePassword", IDS_SETTINGS_PASSWORDS_REMOVE},
593 {"editPasswordTitle", IDS_SETTINGS_PASSWORDS_EDIT_TITLE}, 594 {"editPasswordTitle", IDS_SETTINGS_PASSWORDS_EDIT_TITLE},
594 {"editPasswordWebsiteLabel", IDS_SETTINGS_PASSWORDS_WEBSITE}, 595 {"editPasswordWebsiteLabel", IDS_SETTINGS_PASSWORDS_WEBSITE},
595 {"editPasswordUsernameLabel", IDS_SETTINGS_PASSWORDS_USERNAME}, 596 {"editPasswordUsernameLabel", IDS_SETTINGS_PASSWORDS_USERNAME},
596 {"editPasswordPasswordLabel", IDS_SETTINGS_PASSWORDS_PASSWORD}, 597 {"editPasswordPasswordLabel", IDS_SETTINGS_PASSWORDS_PASSWORD},
597 }; 598 };
599 html_source->AddString(
600 "managePasswordsLabel",
601 l10n_util::GetStringFUTF16(
602 IDS_SETTINGS_PASSWORDS_MANAGE_PASSWORDS,
603 base::ASCIIToUTF16(
604 password_manager::kPasswordManagerAccountDashboardURL)));
598 AddLocalizedStringsBulk(html_source, localized_strings, 605 AddLocalizedStringsBulk(html_source, localized_strings,
599 arraysize(localized_strings)); 606 arraysize(localized_strings));
600 } 607 }
601 608
602 void AddPeopleStrings(content::WebUIDataSource* html_source) { 609 void AddPeopleStrings(content::WebUIDataSource* html_source) {
603 LocalizedString localized_strings[] = { 610 LocalizedString localized_strings[] = {
604 {"peoplePageTitle", IDS_SETTINGS_PEOPLE}, 611 {"peoplePageTitle", IDS_SETTINGS_PEOPLE},
605 {"manageOtherPeople", IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE}, 612 {"manageOtherPeople", IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE},
606 #if defined(OS_CHROMEOS) 613 #if defined(OS_CHROMEOS)
607 {"enableScreenlock", IDS_SETTINGS_PEOPLE_ENABLE_SCREENLOCK}, 614 {"enableScreenlock", IDS_SETTINGS_PEOPLE_ENABLE_SCREENLOCK},
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 #endif 952 #endif
946 AddUsersStrings(html_source); 953 AddUsersStrings(html_source);
947 AddWebContentStrings(html_source); 954 AddWebContentStrings(html_source);
948 955
949 policy_indicator::AddLocalizedStrings(html_source); 956 policy_indicator::AddLocalizedStrings(html_source);
950 957
951 html_source->SetJsonPath(kLocalizedStringsFile); 958 html_source->SetJsonPath(kLocalizedStringsFile);
952 } 959 }
953 960
954 } // namespace settings 961 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698