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

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

Issue 2317693003: [MD settings] display message about secondary install in default browser settings (Closed)
Patch Set: excluding from chromeos Created 4 years, 3 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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 AddLocalizedStringsBulk(html_source, localized_strings, 457 AddLocalizedStringsBulk(html_source, localized_strings,
458 arraysize(localized_strings)); 458 arraysize(localized_strings));
459 } 459 }
460 460
461 #if !defined(OS_CHROMEOS) 461 #if !defined(OS_CHROMEOS)
462 void AddDefaultBrowserStrings(content::WebUIDataSource* html_source) { 462 void AddDefaultBrowserStrings(content::WebUIDataSource* html_source) {
463 LocalizedString localized_strings[] = { 463 LocalizedString localized_strings[] = {
464 {"defaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER}, 464 {"defaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER},
465 {"defaultBrowserDefault", IDS_SETTINGS_DEFAULT_BROWSER_DEFAULT}, 465 {"defaultBrowserDefault", IDS_SETTINGS_DEFAULT_BROWSER_DEFAULT},
466 {"defaultBrowserMakeDefault", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT}, 466 {"defaultBrowserMakeDefault", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT},
467 {"defaultBrowserUnknown", IDS_SETTINGS_DEFAULT_BROWSER_UNKNOWN}, 467 {"defaultBrowserError", IDS_SETTINGS_DEFAULT_BROWSER_ERROR},
468 {"defaultBrowserSecondary", IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY}, 468 {"defaultBrowserSecondary", IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY},
469 {"unableToSetDefaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER_ERROR},
470 }; 469 };
471 AddLocalizedStringsBulk(html_source, localized_strings, 470 AddLocalizedStringsBulk(html_source, localized_strings,
472 arraysize(localized_strings)); 471 arraysize(localized_strings));
473 } 472 }
474 #endif 473 #endif
475 474
476 #if defined(OS_CHROMEOS) 475 #if defined(OS_CHROMEOS)
477 void AddDeviceStrings(content::WebUIDataSource* html_source) { 476 void AddDeviceStrings(content::WebUIDataSource* html_source) {
478 LocalizedString device_strings[] = { 477 LocalizedString device_strings[] = {
479 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, 478 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE},
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 html_source->AddString("improveBrowsingExperience", 1143 html_source->AddString("improveBrowsingExperience",
1145 l10n_util::GetStringFUTF16( 1144 l10n_util::GetStringFUTF16(
1146 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE, 1145 IDS_SETTINGS_IMPROVE_BROWSING_EXPERIENCE,
1147 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL))); 1146 base::ASCIIToUTF16(chrome::kPrivacyLearnMoreURL)));
1148 } 1147 }
1149 1148
1150 void AddSearchInSettingsStrings(content::WebUIDataSource* html_source) { 1149 void AddSearchInSettingsStrings(content::WebUIDataSource* html_source) {
1151 LocalizedString localized_strings[] = { 1150 LocalizedString localized_strings[] = {
1152 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT}, 1151 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT},
1153 {"searchNoResults", IDS_SETTINGS_SEARCH_NO_RESULTS}, 1152 {"searchNoResults", IDS_SETTINGS_SEARCH_NO_RESULTS},
1154 // TODO(dpapad); IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH 1153 // TODO(dpapad): IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH
1155 // are identical, merge them to one and re-use here. 1154 // are identical, merge them to one and re-use here.
1156 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH}, 1155 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH},
1157 }; 1156 };
1158 AddLocalizedStringsBulk(html_source, localized_strings, 1157 AddLocalizedStringsBulk(html_source, localized_strings,
1159 arraysize(localized_strings)); 1158 arraysize(localized_strings));
1160 1159
1161 base::string16 help_text = l10n_util::GetStringFUTF16( 1160 base::string16 help_text = l10n_util::GetStringFUTF16(
1162 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP, 1161 IDS_SETTINGS_SEARCH_NO_RESULTS_HELP,
1163 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL)); 1162 base::ASCIIToUTF16(chrome::kSettingsSearchHelpURL));
1164 html_source->AddString("searchNoResultsHelp", help_text); 1163 html_source->AddString("searchNoResultsHelp", help_text);
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 #endif 1603 #endif
1605 AddUsersStrings(html_source); 1604 AddUsersStrings(html_source);
1606 AddWebContentStrings(html_source); 1605 AddWebContentStrings(html_source);
1607 1606
1608 policy_indicator::AddLocalizedStrings(html_source); 1607 policy_indicator::AddLocalizedStrings(html_source);
1609 1608
1610 html_source->SetJsonPath(kLocalizedStringsFile); 1609 html_source->SetJsonPath(kLocalizedStringsFile);
1611 } 1610 }
1612 1611
1613 } // namespace settings 1612 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698