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

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

Issue 1882483002: MD Settings: OnStartup, implementing "Edit" functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@edit_on_startup_move_delete
Patch Set: Nit. 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"
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 #endif 559 #endif
560 560
561 void AddOnStartupStrings(content::WebUIDataSource* html_source) { 561 void AddOnStartupStrings(content::WebUIDataSource* html_source) {
562 LocalizedString localized_strings[] = { 562 LocalizedString localized_strings[] = {
563 {"onStartup", IDS_SETTINGS_ON_STARTUP}, 563 {"onStartup", IDS_SETTINGS_ON_STARTUP},
564 {"onStartupOpenNewTab", IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB}, 564 {"onStartupOpenNewTab", IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB},
565 {"onStartupContinue", IDS_SETTINGS_ON_STARTUP_CONTINUE}, 565 {"onStartupContinue", IDS_SETTINGS_ON_STARTUP_CONTINUE},
566 {"onStartupOpenSpecific", IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC}, 566 {"onStartupOpenSpecific", IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC},
567 {"onStartupUseCurrent", IDS_SETTINGS_ON_STARTUP_USE_CURRENT}, 567 {"onStartupUseCurrent", IDS_SETTINGS_ON_STARTUP_USE_CURRENT},
568 {"onStartupAddNewPage", IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE}, 568 {"onStartupAddNewPage", IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE},
569 {"onStartupEditPage", IDS_SETTINGS_ON_STARTUP_EDIT_PAGE},
569 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, 570 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL},
570 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE}, 571 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE},
572 {"onStartupEdit", IDS_SETTINGS_ON_STARTUP_EDIT},
571 }; 573 };
572 AddLocalizedStringsBulk(html_source, localized_strings, 574 AddLocalizedStringsBulk(html_source, localized_strings,
573 arraysize(localized_strings)); 575 arraysize(localized_strings));
574 } 576 }
575 577
576 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { 578 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
577 LocalizedString localized_strings[] = { 579 LocalizedString localized_strings[] = {
578 {"passwordsAndAutofillPageTitle", 580 {"passwordsAndAutofillPageTitle",
579 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, 581 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE},
580 {"autofill", IDS_SETTINGS_AUTOFILL}, 582 {"autofill", IDS_SETTINGS_AUTOFILL},
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 #endif 944 #endif
943 AddUsersStrings(html_source); 945 AddUsersStrings(html_source);
944 AddWebContentStrings(html_source); 946 AddWebContentStrings(html_source);
945 947
946 policy_indicator::AddLocalizedStrings(html_source); 948 policy_indicator::AddLocalizedStrings(html_source);
947 949
948 html_source->SetJsonPath(kLocalizedStringsFile); 950 html_source->SetJsonPath(kLocalizedStringsFile);
949 } 951 }
950 952
951 } // namespace settings 953 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698