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

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

Issue 1381553003: Settings Rewrite: Add Sign-in (Chrome) section (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « chrome/browser/resources/settings/sync_page/sync_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "chrome/grit/chromium_strings.h" 10 #include "chrome/grit/chromium_strings.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 html_source->AddLocalizedString("searchEnginesDomainLabel", 413 html_source->AddLocalizedString("searchEnginesDomainLabel",
414 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL); 414 IDS_SETTINGS_SEARCH_ENGINES_DOMAIN_LABEL);
415 html_source->AddLocalizedString("searchEnginesKeywordLabel", 415 html_source->AddLocalizedString("searchEnginesKeywordLabel",
416 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL); 416 IDS_SETTINGS_SEARCH_ENGINES_KEYWORD_LABEL);
417 html_source->AddLocalizedString("searchEnginesQueryURLLabel", 417 html_source->AddLocalizedString("searchEnginesQueryURLLabel",
418 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL); 418 IDS_SETTINGS_SEARCH_ENGINES_QUERY_URL_LABEL);
419 html_source->AddLocalizedString("searchEnginesAddButtonLabel", 419 html_source->AddLocalizedString("searchEnginesAddButtonLabel",
420 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL); 420 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL);
421 } 421 }
422 422
423 #if !defined(OS_CHROMEOS)
424 void AddSigninSettingsStrings(content::WebUIDataSource* html_source) {
425 html_source->AddLocalizedString("signinPageTitle", IDS_SETTINGS_SIGNIN);
426 }
427 #endif
428
423 void AddSiteSettingsStrings(content::WebUIDataSource* html_source) { 429 void AddSiteSettingsStrings(content::WebUIDataSource* html_source) {
424 html_source->AddLocalizedString("siteSettingsPageTitle", 430 html_source->AddLocalizedString("siteSettingsPageTitle",
425 IDS_SETTINGS_SITE_SETTINGS); 431 IDS_SETTINGS_SITE_SETTINGS);
426 html_source->AddLocalizedString("siteSettingsAllSites", 432 html_source->AddLocalizedString("siteSettingsAllSites",
427 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES); 433 IDS_SETTINGS_SITE_SETTINGS_ALL_SITES);
428 html_source->AddLocalizedString("siteSettingsCookies", 434 html_source->AddLocalizedString("siteSettingsCookies",
429 IDS_SETTINGS_SITE_SETTINGS_COOKIES); 435 IDS_SETTINGS_SITE_SETTINGS_COOKIES);
430 html_source->AddLocalizedString("siteSettingsLocation", 436 html_source->AddLocalizedString("siteSettingsLocation",
431 IDS_SETTINGS_SITE_SETTINGS_LOCATION); 437 IDS_SETTINGS_SITE_SETTINGS_LOCATION);
432 html_source->AddLocalizedString("siteSettingsNotifications", 438 html_source->AddLocalizedString("siteSettingsNotifications",
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 AddInternetStrings(html_source); 551 AddInternetStrings(html_source);
546 #endif 552 #endif
547 AddLanguagesStrings(html_source); 553 AddLanguagesStrings(html_source);
548 #if defined(OS_CHROMEOS) 554 #if defined(OS_CHROMEOS)
549 AddMultiProfilesStrings(html_source, profile); 555 AddMultiProfilesStrings(html_source, profile);
550 #endif 556 #endif
551 AddOnStartupStrings(html_source); 557 AddOnStartupStrings(html_source);
552 AddPrivacyStrings(html_source); 558 AddPrivacyStrings(html_source);
553 AddSearchEnginesStrings(html_source); 559 AddSearchEnginesStrings(html_source);
554 AddSearchStrings(html_source); 560 AddSearchStrings(html_source);
561 #if !defined(OS_CHROMEOS)
562 AddSigninSettingsStrings(html_source);
563 #endif
555 AddSiteSettingsStrings(html_source); 564 AddSiteSettingsStrings(html_source);
556 AddSyncStrings(html_source); 565 AddSyncStrings(html_source);
557 AddUsersStrings(html_source); 566 AddUsersStrings(html_source);
558 567
559 html_source->SetJsonPath(kLocalizedStringsFile); 568 html_source->SetJsonPath(kLocalizedStringsFile);
560 } 569 }
561 570
562 } // namespace settings 571 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/sync_page/sync_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698