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

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: Event name. 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 #endif 558 #endif
559 559
560 void AddOnStartupStrings(content::WebUIDataSource* html_source) { 560 void AddOnStartupStrings(content::WebUIDataSource* html_source) {
561 LocalizedString localized_strings[] = { 561 LocalizedString localized_strings[] = {
562 {"onStartup", IDS_SETTINGS_ON_STARTUP}, 562 {"onStartup", IDS_SETTINGS_ON_STARTUP},
563 {"onStartupOpenNewTab", IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB}, 563 {"onStartupOpenNewTab", IDS_SETTINGS_ON_STARTUP_OPEN_NEW_TAB},
564 {"onStartupContinue", IDS_SETTINGS_ON_STARTUP_CONTINUE}, 564 {"onStartupContinue", IDS_SETTINGS_ON_STARTUP_CONTINUE},
565 {"onStartupOpenSpecific", IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC}, 565 {"onStartupOpenSpecific", IDS_SETTINGS_ON_STARTUP_OPEN_SPECIFIC},
566 {"onStartupUseCurrent", IDS_SETTINGS_ON_STARTUP_USE_CURRENT}, 566 {"onStartupUseCurrent", IDS_SETTINGS_ON_STARTUP_USE_CURRENT},
567 {"onStartupAddNewPage", IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE}, 567 {"onStartupAddNewPage", IDS_SETTINGS_ON_STARTUP_ADD_NEW_PAGE},
568 {"onStartupEditPage", IDS_SETTINGS_ON_STARTUP_EDIT_PAGE},
568 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, 569 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL},
569 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE}, 570 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE},
571 {"onStartupEdit", IDS_SETTINGS_ON_STARTUP_EDIT},
570 }; 572 };
571 AddLocalizedStringsBulk(html_source, localized_strings, 573 AddLocalizedStringsBulk(html_source, localized_strings,
572 arraysize(localized_strings)); 574 arraysize(localized_strings));
573 } 575 }
574 576
575 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { 577 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
576 LocalizedString localized_strings[] = { 578 LocalizedString localized_strings[] = {
577 {"passwordsAndAutofillPageTitle", 579 {"passwordsAndAutofillPageTitle",
578 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, 580 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE},
579 {"autofill", IDS_SETTINGS_AUTOFILL}, 581 {"autofill", IDS_SETTINGS_AUTOFILL},
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 #endif 941 #endif
940 AddUsersStrings(html_source); 942 AddUsersStrings(html_source);
941 AddWebContentStrings(html_source); 943 AddWebContentStrings(html_source);
942 944
943 policy_indicator::AddLocalizedStrings(html_source); 945 policy_indicator::AddLocalizedStrings(html_source);
944 946
945 html_source->SetJsonPath(kLocalizedStringsFile); 947 html_source->SetJsonPath(kLocalizedStringsFile);
946 } 948 }
947 949
948 } // namespace settings 950 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698