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

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

Issue 1576863003: [MD settings] correcting OnStartup text to match mocks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed classes that are not available yet 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
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_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 <string>
8
7 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
8 #include "build/build_config.h" 10 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" 13 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h"
12 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
13 #include "chrome/grit/chromium_strings.h" 15 #include "chrome/grit/chromium_strings.h"
14 #include "chrome/grit/generated_resources.h" 16 #include "chrome/grit/generated_resources.h"
15 #include "chrome/grit/google_chrome_strings.h" 17 #include "chrome/grit/google_chrome_strings.h"
16 #include "chrome/grit/locale_settings.h" 18 #include "chrome/grit/locale_settings.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 html_source->AddLocalizedString( 454 html_source->AddLocalizedString(
453 "onStartupOpenNewTab", 455 "onStartupOpenNewTab",
454 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB); 456 IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB);
455 html_source->AddLocalizedString( 457 html_source->AddLocalizedString(
456 "onStartupContinue", 458 "onStartupContinue",
457 IDS_SETTINGS_ON_STARTUP_CONTINUE); 459 IDS_SETTINGS_ON_STARTUP_CONTINUE);
458 html_source->AddLocalizedString( 460 html_source->AddLocalizedString(
459 "onStartupOpenSpecific", 461 "onStartupOpenSpecific",
460 IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC); 462 IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC);
461 html_source->AddLocalizedString( 463 html_source->AddLocalizedString(
462 "onStartupAddPage",
463 IDS_SETTINGS_ON_STARTUP_ADD_PAGE);
464 html_source->AddLocalizedString(
465 "onStartupSetPages",
466 IDS_SETTINGS_ON_STARTUP_SET_PAGES);
467 html_source->AddLocalizedString(
468 "onStartupUseCurrent", 464 "onStartupUseCurrent",
469 IDS_SETTINGS_ON_STARTUP_USE_CURRENT); 465 IDS_SETTINGS_ON_STARTUP_USE_CURRENT);
470 html_source->AddLocalizedString( 466 html_source->AddLocalizedString(
471 "onStartupAddNewPage", 467 "onStartupAddNewPage",
472 IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE); 468 IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE);
473 html_source->AddLocalizedString( 469 html_source->AddLocalizedString(
474 "onStartupEnterUrl", 470 "onStartupSiteUrl",
475 IDS_SETTINGS_ON_STARTUP_ENTER_URL); 471 IDS_SETTINGS_ON_STARTUP_SITE_URL);
476 } 472 }
477 473
478 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { 474 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
479 html_source->AddLocalizedString( 475 html_source->AddLocalizedString(
480 "passwordsAndAutofillPageTitle", 476 "passwordsAndAutofillPageTitle",
481 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE); 477 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE);
482 html_source->AddLocalizedString("autofill", IDS_SETTINGS_AUTOFILL); 478 html_source->AddLocalizedString("autofill", IDS_SETTINGS_AUTOFILL);
483 html_source->AddLocalizedString("autofillDetail", 479 html_source->AddLocalizedString("autofillDetail",
484 IDS_SETTINGS_AUTOFILL_DETAIL); 480 IDS_SETTINGS_AUTOFILL_DETAIL);
485 html_source->AddLocalizedString("passwords", IDS_SETTINGS_PASSWORDS); 481 html_source->AddLocalizedString("passwords", IDS_SETTINGS_PASSWORDS);
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 AddSiteSettingsStrings(html_source); 863 AddSiteSettingsStrings(html_source);
868 AddUsersStrings(html_source); 864 AddUsersStrings(html_source);
869 AddWebContentStrings(html_source); 865 AddWebContentStrings(html_source);
870 866
871 policy_indicator::AddLocalizedStrings(html_source); 867 policy_indicator::AddLocalizedStrings(html_source);
872 868
873 html_source->SetJsonPath(kLocalizedStringsFile); 869 html_source->SetJsonPath(kLocalizedStringsFile);
874 } 870 }
875 871
876 } // namespace settings 872 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698