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

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

Issue 1428313002: Add a page for showing the details for a given origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" 9 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 IDS_SETTINGS_SITE_SETTINGS_ADD_SITE); 524 IDS_SETTINGS_SITE_SETTINGS_ADD_SITE);
525 html_source->AddLocalizedString("siteSettingsSiteUrl", 525 html_source->AddLocalizedString("siteSettingsSiteUrl",
526 IDS_SETTINGS_SITE_SETTINGS_SITE_URL); 526 IDS_SETTINGS_SITE_SETTINGS_SITE_URL);
527 527
528 html_source->AddLocalizedString("siteSettingsActionAllow", 528 html_source->AddLocalizedString("siteSettingsActionAllow",
529 IDS_SETTINGS_SITE_SETTINGS_ALLOW_MENU); 529 IDS_SETTINGS_SITE_SETTINGS_ALLOW_MENU);
530 html_source->AddLocalizedString("siteSettingsActionBlock", 530 html_source->AddLocalizedString("siteSettingsActionBlock",
531 IDS_SETTINGS_SITE_SETTINGS_BLOCK_MENU); 531 IDS_SETTINGS_SITE_SETTINGS_BLOCK_MENU);
532 html_source->AddLocalizedString("siteSettingsActionReset", 532 html_source->AddLocalizedString("siteSettingsActionReset",
533 IDS_SETTINGS_SITE_SETTINGS_RESET_MENU); 533 IDS_SETTINGS_SITE_SETTINGS_RESET_MENU);
534 html_source->AddLocalizedString("siteSettingsUsage",
535 IDS_SETTINGS_SITE_SETTINGS_USAGE);
536 html_source->AddLocalizedString("siteSettingsPermissions",
537 IDS_SETTINGS_SITE_SETTINGS_PERMISSIONS);
538 html_source->AddLocalizedString("siteSettingsClearAndReset",
539 IDS_SETTINGS_SITE_SETTINGS_CLEAR_BUTTON);
534 } 540 }
535 541
536 void AddSyncStrings(content::WebUIDataSource* html_source) { 542 void AddSyncStrings(content::WebUIDataSource* html_source) {
537 html_source->AddLocalizedString("syncPageTitle", IDS_SETTINGS_SYNC); 543 html_source->AddLocalizedString("syncPageTitle", IDS_SETTINGS_SYNC);
538 html_source->AddLocalizedString("syncLoading", IDS_SETTINGS_SYNC_LOADING); 544 html_source->AddLocalizedString("syncLoading", IDS_SETTINGS_SYNC_LOADING);
539 html_source->AddLocalizedString("syncTimeout", IDS_SETTINGS_SYNC_TIMEOUT); 545 html_source->AddLocalizedString("syncTimeout", IDS_SETTINGS_SYNC_TIMEOUT);
540 html_source->AddLocalizedString("syncEverythingMenuOption", 546 html_source->AddLocalizedString("syncEverythingMenuOption",
541 IDS_SETTINGS_SYNC_EVERYTHING_MENU_OPTION); 547 IDS_SETTINGS_SYNC_EVERYTHING_MENU_OPTION);
542 html_source->AddLocalizedString("chooseWhatToSyncMenuOption", 548 html_source->AddLocalizedString("chooseWhatToSyncMenuOption",
543 IDS_SETTINGS_CHOOSE_WHAT_TO_SYNC_MENU_OPTION); 549 IDS_SETTINGS_CHOOSE_WHAT_TO_SYNC_MENU_OPTION);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 AddSyncStrings(html_source); 693 AddSyncStrings(html_source);
688 AddUsersStrings(html_source); 694 AddUsersStrings(html_source);
689 AddWebContentStrings(html_source); 695 AddWebContentStrings(html_source);
690 696
691 policy_indicator::AddLocalizedStrings(html_source); 697 policy_indicator::AddLocalizedStrings(html_source);
692 698
693 html_source->SetJsonPath(kLocalizedStringsFile); 699 html_source->SetJsonPath(kLocalizedStringsFile);
694 } 700 }
695 701
696 } // namespace settings 702 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698