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

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

Issue 1546993003: Site Settings: Give each category its own route. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL); 598 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL);
599 html_source->AddLocalizedString("searchEnginesKeywordLabel", 599 html_source->AddLocalizedString("searchEnginesKeywordLabel",
600 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL); 600 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL);
601 html_source->AddLocalizedString("searchEnginesQueryURLLabel", 601 html_source->AddLocalizedString("searchEnginesQueryURLLabel",
602 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL); 602 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL);
603 html_source->AddLocalizedString("searchEnginesAddButtonLabel", 603 html_source->AddLocalizedString("searchEnginesAddButtonLabel",
604 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL); 604 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL);
605 } 605 }
606 606
607 void AddSiteSettingsStrings(content::WebUIDataSource* html_source) { 607 void AddSiteSettingsStrings(content::WebUIDataSource* html_source) {
608 html_source->AddLocalizedString("siteSettingsPageTitle",
609 IDS_SETTINGS_SITE_SETTINGS);
610 // TODO(finnur): Would be nice to show 'Location'/'Camera' instead of hard-
611 // coding this.
612 html_source->AddLocalizedString("siteSettingsCategoryPageTitle", 608 html_source->AddLocalizedString("siteSettingsCategoryPageTitle",
613 IDS_SETTINGS_SITE_SETTINGS_CATEGORY); 609 IDS_SETTINGS_SITE_SETTINGS_CATEGORY);
610 html_source->AddLocalizedString("siteSettingsCategoryCamera",
611 IDS_SETTINGS_SITE_SETTINGS_CAMERA);
612 html_source->AddLocalizedString("siteSettingsCategoryCookies",
613 IDS_SETTINGS_SITE_SETTINGS_COOKIES);
614 html_source->AddLocalizedString("siteSettingsCategoryFullscreen",
615 IDS_SETTINGS_SITE_SETTINGS_FULLSCREEN);
616 html_source->AddLocalizedString("siteSettingsCategoryImages",
617 IDS_SETTINGS_SITE_SETTINGS_IMAGES);
618 html_source->AddLocalizedString("siteSettingsCategoryLocation",
619 IDS_SETTINGS_SITE_SETTINGS_LOCATION);
620 html_source->AddLocalizedString("siteSettingsCategoryJavascript",
621 IDS_SETTINGS_SITE_SETTINGS_JAVASCRIPT);
622 html_source->AddLocalizedString("siteSettingsCategoryMicrophone",
623 IDS_SETTINGS_SITE_SETTINGS_MIC);
624 html_source->AddLocalizedString("siteSettingsCategoryNotifications",
625 IDS_SETTINGS_SITE_SETTINGS_NOTIFICATIONS);
626 html_source->AddLocalizedString("siteSettingsCategoryPopups",
627 IDS_SETTINGS_SITE_SETTINGS_POPUPS);
614 html_source->AddLocalizedString("siteSettingsSiteDetailsPageTitle", 628 html_source->AddLocalizedString("siteSettingsSiteDetailsPageTitle",
615 IDS_SETTINGS_SITE_SETTINGS_SITE_DETAILS); 629 IDS_SETTINGS_SITE_SETTINGS_SITE_DETAILS);
616 html_source->AddLocalizedString("siteSettingsAllSites", 630 html_source->AddLocalizedString("siteSettingsAllSites",
617 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES); 631 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES);
618 html_source->AddLocalizedString("siteSettingsCamera", 632 html_source->AddLocalizedString("siteSettingsCamera",
619 IDS_SETTINGS_SITE_SETTINGS_CAMERA); 633 IDS_SETTINGS_SITE_SETTINGS_CAMERA);
620 html_source->AddLocalizedString("siteSettingsCookies", 634 html_source->AddLocalizedString("siteSettingsCookies",
621 IDS_SETTINGS_SITE_SETTINGS_COOKIES); 635 IDS_SETTINGS_SITE_SETTINGS_COOKIES);
622 html_source->AddLocalizedString("siteSettingsLocation", 636 html_source->AddLocalizedString("siteSettingsLocation",
623 IDS_SETTINGS_SITE_SETTINGS_LOCATION); 637 IDS_SETTINGS_SITE_SETTINGS_LOCATION);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 AddSiteSettingsStrings(html_source); 817 AddSiteSettingsStrings(html_source);
804 AddUsersStrings(html_source); 818 AddUsersStrings(html_source);
805 AddWebContentStrings(html_source); 819 AddWebContentStrings(html_source);
806 820
807 policy_indicator::AddLocalizedStrings(html_source); 821 policy_indicator::AddLocalizedStrings(html_source);
808 822
809 html_source->SetJsonPath(kLocalizedStringsFile); 823 html_source->SetJsonPath(kLocalizedStringsFile);
810 } 824 }
811 825
812 } // namespace settings 826 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698