Commit bbb7ac19 authored by Fabio Tirelo's avatar Fabio Tirelo Committed by Commit Bot

Chrome Cleanup: Move strings that are only used in the Settings page

These strings were initially thought to be used by a separate page, but
we ended up never moving them to the file where other strings for the
Settings page are.

Bug: 776538
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I01c8799d62564c56a8b0e4b59aaf948107afa7aa
Reviewed-on: https://chromium-review.googlesource.com/762157
Commit-Queue: Fabio Tirelo <ftirelo@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarChris Sharp <csharp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515810}
parent 73301afb
...@@ -722,14 +722,11 @@ Signing in anyway will merge Chromium information like bookmarks, history, and o ...@@ -722,14 +722,11 @@ Signing in anyway will merge Chromium information like bookmarks, history, and o
</message> </message>
</if> </if>
<!-- Chrome Cleanup prompt and web UI. <!-- Chrome Cleanup prompt.
Note: these strings should only be used by Google Chrome, but Note: these strings should only be used by Google Chrome, but
omitting them brings up a hash collision error. --> omitting them brings up a hash collision error. -->
<if expr="is_win"> <if expr="is_win">
<message name="IDS_CHROME_CLEANUP_PROMPT_EXPLANATION" desc="Description in the Chrome Cleanup dialog that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software?' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. User has the option of clicking 'Remove' to proceed with a cleanup, or 'Details' to see more details. Preferrably, the translation for this string should have the same meaning as IDS_CHROME_CLEANUP_WEBUI_EXPLANATION."> <message name="IDS_CHROME_CLEANUP_PROMPT_EXPLANATION" desc="Description in the Chrome Cleanup dialog that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software?' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. User has the option of clicking 'Remove' to proceed with a cleanup, or 'Details' to see more details. Preferrably, the translation for this string should have the same meaning as IDS_SETTINGS_RESET_CLEANUP_EXPLANATION.">
Chromium found harmful software on your computer. Chromium can remove it and restore your settings to make your browser work normally again.
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_EXPLANATION" desc="Description in the Chrome Cleanup web page that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software?' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. The user can click 'Remove' to proceed with a cleanup. Preferrably, the translation for this string should have the same meaning as IDS_CHROME_CLEANUP_PROMPT_EXPLANATION.">
Chromium found harmful software on your computer. Chromium can remove it and restore your settings to make your browser work normally again. Chromium found harmful software on your computer. Chromium can remove it and restore your settings to make your browser work normally again.
</message> </message>
</if> </if>
......
...@@ -5894,39 +5894,6 @@ I don't think this site should be blocked! ...@@ -5894,39 +5894,6 @@ I don't think this site should be blocked!
<message name="IDS_CHROME_CLEANUP_REBOOT_PROMPT_RESTART_BUTTON_LABEL" desc="A button in the Chrome Cleanup reboot prompt dialog. Clicking this button causes the user's computer to turn off (shut down) and turn back on again. Imperative."> <message name="IDS_CHROME_CLEANUP_REBOOT_PROMPT_RESTART_BUTTON_LABEL" desc="A button in the Chrome Cleanup reboot prompt dialog. Clicking this button causes the user's computer to turn off (shut down) and turn back on again. Imperative.">
Restart computer Restart computer
</message> </message>
<message name="IDS_CHROME_CLEANUP_WEBUI_DONE_BUTTON_LABEL" desc="A button on the web page for Chrome Cleanup. Clicking this button causes the card on the settings page to be dismissed.">
Done
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_FOOTER_POWERED_BY" desc="Branding footer on the web page for Chrome Cleanup. COMPANY_NAME is the name of a technology service that Chrome uses to remove harmful software from the user's computer. It is not necessary to translate 'powered by' literally; use an appropriate word for your language to convey the meaning of 'uses'. A similar use in other Google products is 'Powered by Google Translate.'">
Powered by <ph name="COMPANY_NAME">$1<ex>Google</ex></ph>
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_LINK_LEARN_MORE" desc="A link, appearing on the Chrome Cleanup web page, that the user can click to open a Help Center article that explains the Chrome Cleanup Tool, the data it sends to Google, why the data is collected, how it is used, and how to enable or disable data collection. Imperative.">
Learn more
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_LINK_SHOW_FILES" desc="A link, appearing on the Chrome Cleanup web page, that the user can click to show the files that will be removed. Imperative.">
Show files to be removed
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_REMOVE_BUTTON_LABEL" desc="Button on the Chrome Cleanup web page. Allows users to start a cleanup of unwanted software on their computer and restore browser settings to default values. 'Remove' is imperative.">
Remove
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_RESTART_BUTTON_LABEL" desc="Button on the web page for Chrome Cleanup. Clicking this button causes the user's computer to turn off (shut down) and turn back on again. Imperative. ">
Restart computer
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_TITLE_ERROR_CANT_REMOVE" desc="An error message, appearing on the Chrome Cleanup web page, that Chrome tried to clean up unwanted software, as requested by the user, but was unsuccessful. Omits subject, i.e. Chrome can't remove harmful software.">
Can't remove harmful software.
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_TITLE_REMOVE" desc="Title of the Chrome Cleanup web page. Chrome browser shows the webpage when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears above a description of what the cleanup does. 'Remove' is imperative.">
Remove harmful software
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_TITLE_REMOVED" desc="A confirmation, appearing on the Chrome Cleanup web page, that the cleanup of unwanted software is finished. Omits 'was', i.e. Harmful software was removed. Appears next to a Done button, which lets user dismiss the confirmation.">
Harmful software removed
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_TITLE_REMOVING" desc="A status message, appearing on the Chrome cleanup web page, that the cleanup of unwanted software initiated by the user is in progress. Omits subject, i.e. 'Chrome is removing harmful software.' If appropriate for your language, include ellipsis to show that the operation is in progress.">
Removing harmful software...
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_TITLE_RESTART" desc="A status message, appearing on the Chrome Cleanup web page, that the cleanup of unwanted software initiated by the user was performed but isn't finished. User must take additional action to finish the cleanup. 'Restart' is imperative. Short for 'To finish removing harmful software...'">
To finish removing harmful software, restart your computer
</message>
<message name="IDS_CHROME_CLEANUP_LOGS_PERMISSION" desc="A checkbox label, appearing on both the Chrome Cleanup modal dialog and webui page, asking the user for permission to send details about the cleanup operation to Google."> <message name="IDS_CHROME_CLEANUP_LOGS_PERMISSION" desc="A checkbox label, appearing on both the Chrome Cleanup modal dialog and webui page, asking the user for permission to send details about the cleanup operation to Google.">
Report details to Google Report details to Google
</message> </message>
......
...@@ -732,12 +732,9 @@ Signing in anyway will merge Chrome information like bookmarks, history, and oth ...@@ -732,12 +732,9 @@ Signing in anyway will merge Chrome information like bookmarks, history, and oth
</message> </message>
</if> </if>
<!-- Chrome Cleanup prompt and web UI --> <!-- Chrome Cleanup prompt -->
<if expr="is_win"> <if expr="is_win">
<message name="IDS_CHROME_CLEANUP_PROMPT_EXPLANATION" desc="Description in the Chrome Cleanup dialog that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software?' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. User has the option of clicking 'Remove' to proceed with a cleanup, or 'Details' to see more details. Preferrably, the translation for this string should match IDS_CHROME_CLEANUP_WEBUI_EXPLANATION."> <message name="IDS_CHROME_CLEANUP_PROMPT_EXPLANATION" desc="Description in the Chrome Cleanup dialog that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software?' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. User has the option of clicking 'Remove' to proceed with a cleanup, or 'Details' to see more details. Preferrably, the translation for this string should match IDS_SETTINGS_RESET_CLEANUP_EXPLANATION_REMOVE.">
Chrome found harmful software on your computer. Chrome can remove it and restore your settings to make your browser work normally again.
</message>
<message name="IDS_CHROME_CLEANUP_WEBUI_EXPLANATION" desc="Description in the Chrome Cleanup web page that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software.' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. The user can click 'Remove' to proceed with a cleanup. Preferrably, the translation for this string should match IDS_CHROME_CLEANUP_PROMPT_EXPLANATION.">
Chrome found harmful software on your computer. Chrome can remove it and restore your settings to make your browser work normally again. Chrome found harmful software on your computer. Chrome can remove it and restore your settings to make your browser work normally again.
</message> </message>
</if> </if>
......
...@@ -3645,4 +3645,41 @@ ...@@ -3645,4 +3645,41 @@
<message name="IDS_SETTINGS_CHANGE_PASSWORD_BUTTON" desc="Label on button that takes user to change password page."> <message name="IDS_SETTINGS_CHANGE_PASSWORD_BUTTON" desc="Label on button that takes user to change password page.">
Change Password Change Password
</message> </message>
<!-- Reset Page -->
<if expr="is_win and _google_chrome">
<message name="IDS_SETTINGS_RESET_CLEANUP_DONE_BUTTON_LABEL" desc="A button on the web page for Chrome Cleanup. Clicking this button causes the card on the settings page to be dismissed.">
Done
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_EXPLANATION_REMOVE" desc="Description in the Chrome Cleanup web page that Chrome browser shows when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears under the title asking 'Remove harmful software.' Actor is Chrome; we are asking, Do you want Chrome to remove harmful software? 'it' is harmful software. The user can click 'Remove' to proceed with a cleanup. Preferrably, the translation for this string should match IDS_CHROME_CLEANUP_PROMPT_EXPLANATION.">
Chrome found harmful software on your computer. Chrome can remove it and restore your settings to make your browser work normally again.
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_FOOTER_POWERED_BY" desc="Branding footer on the web page for Chrome Cleanup. COMPANY_NAME is the name of a technology service that Chrome uses to remove harmful software from the user's computer. It is not necessary to translate 'powered by' literally; use an appropriate word for your language to convey the meaning of 'uses'. A similar use in other Google products is 'Powered by Google Translate.'">
Powered by <ph name="COMPANY_NAME">$1<ex>Google</ex></ph>
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_LINK_SHOW_FILES" desc="A link, appearing on the Chrome Cleanup web page, that the user can click to show the files that will be removed. Imperative.">
Show files to be removed
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_REMOVE_BUTTON_LABEL" desc="Button on the Chrome Cleanup web page. Allows users to start a cleanup of unwanted software on their computer and restore browser settings to default values. 'Remove' is imperative.">
Remove
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_RESTART_BUTTON_LABEL" desc="Button on the web page for Chrome Cleanup. Clicking this button causes the user's computer to turn off (shut down) and turn back on again. Imperative. ">
Restart computer
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_TITLE_ERROR_CANT_REMOVE" desc="An error message, appearing on the Chrome Cleanup web page, that Chrome tried to clean up unwanted software, as requested by the user, but was unsuccessful. Omits subject, i.e. Chrome can't remove harmful software.">
Can't remove harmful software
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_TITLE_REMOVE" desc="Title of the Chrome Cleanup web page. Chrome browser shows the webpage when unwanted software, like ad injectors or software that changes the user's settings without their knowledge, is found on the user's computer. Appears above a description of what the cleanup does. 'Remove' is imperative.">
Remove harmful software
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_TITLE_REMOVED" desc="A confirmation, appearing on the Chrome Cleanup web page, that the cleanup of unwanted software is finished. Omits 'was', i.e. Harmful software was removed. Appears next to a Done button, which lets user dismiss the confirmation.">
Harmful software removed
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_TITLE_REMOVING" desc="A status message, appearing on the Chrome cleanup web page, that the cleanup of unwanted software initiated by the user is in progress. Omits subject, i.e. 'Chrome is removing harmful software.' If appropriate for your language, include ellipsis to show that the operation is in progress.">
Removing harmful software...
</message>
<message name="IDS_SETTINGS_RESET_CLEANUP_TITLE_RESTART" desc="A status message, appearing on the Chrome Cleanup web page, that the cleanup of unwanted software initiated by the user was performed but isn't finished. User must take additional action to finish the cleanup. 'Restart' is imperative. Short for 'To finish removing harmful software...'">
To finish removing harmful software, restart your computer
</message>
</if>
</grit-part> </grit-part>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<link rel="import" href="../default_browser_page/default_browser_page.html"> <link rel="import" href="../default_browser_page/default_browser_page.html">
</if> </if>
<if expr="is_win"> <if expr="_google_chrome and is_win">
<link rel="import" href="../chrome_cleanup_page/chrome_cleanup_page.html"> <link rel="import" href="../chrome_cleanup_page/chrome_cleanup_page.html">
</if> </if>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
</settings-section> </settings-section>
</template> </template>
</if> </if>
<if expr="is_win"> <if expr="_google_chrome and is_win">
<template is="dom-if" if="[[showChromeCleanup]]" restamp> <template is="dom-if" if="[[showChromeCleanup]]" restamp>
<settings-section section="chromeCleanup"> <settings-section section="chromeCleanup">
<settings-chrome-cleanup-page></settings-chrome-cleanup-page> <settings-chrome-cleanup-page></settings-chrome-cleanup-page>
......
...@@ -29,7 +29,7 @@ Polymer({ ...@@ -29,7 +29,7 @@ Polymer({
/** @type {!AndroidAppsInfo|undefined} */ /** @type {!AndroidAppsInfo|undefined} */
androidAppsInfo: Object, androidAppsInfo: Object,
// <if expr="is_win"> // <if expr="_google_chrome and is_win">
showChromeCleanup: { showChromeCleanup: {
type: Boolean, type: Boolean,
value: function() { value: function() {
...@@ -110,7 +110,7 @@ Polymer({ ...@@ -110,7 +110,7 @@ Polymer({
attached: function() { attached: function() {
this.currentRoute_ = settings.getCurrentRoute(); this.currentRoute_ = settings.getCurrentRoute();
// <if expr="is_win"> // <if expr="_google_chrome and is_win">
this.addEventListener('chrome-cleanup-dismissed', () => { this.addEventListener('chrome-cleanup-dismissed', () => {
this.showChromeCleanup = false; this.showChromeCleanup = false;
}); });
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<link rel="import" href="powerwash_dialog.html"> <link rel="import" href="powerwash_dialog.html">
</if> </if>
<if expr="is_win"> <if expr="_google_chrome and is_win">
<link rel="import" href="../chrome_cleanup_page/chrome_cleanup_page.html"> <link rel="import" href="../chrome_cleanup_page/chrome_cleanup_page.html">
</if> </if>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</template> </template>
</if> </if>
<!-- This needs to be conditioned to a feature being enabled. --> <!-- This needs to be conditioned to a feature being enabled. -->
<if expr="is_win"> <if expr="_google_chrome and is_win">
<template is="dom-if" if="[[userInitiatedCleanupsEnabled_]]" restamp> <template is="dom-if" if="[[userInitiatedCleanupsEnabled_]]" restamp>
<div class="settings-box two-line" id="chromeCleanupSubpageTrigger" <div class="settings-box two-line" id="chromeCleanupSubpageTrigger"
on-tap="onChromeCleanupTap_" actionable> on-tap="onChromeCleanupTap_" actionable>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</template> </template>
</if> </if>
</neon-animatable> </neon-animatable>
<if expr="is_win"> <if expr="_google_chrome and is_win">
<template is="dom-if" if="[[userInitiatedCleanupsEnabled_]]"> <template is="dom-if" if="[[userInitiatedCleanupsEnabled_]]">
<template is="dom-if" route-path="/cleanup"> <template is="dom-if" route-path="/cleanup">
<settings-subpage id="chromeCleanupSubpage" <settings-subpage id="chromeCleanupSubpage"
......
...@@ -38,7 +38,7 @@ Polymer({ ...@@ -38,7 +38,7 @@ Polymer({
value: false, value: false,
}, },
// <if expr="is_win"> // <if expr="_google_chrome and is_win">
/** @private */ /** @private */
userInitiatedCleanupsEnabled_: { userInitiatedCleanupsEnabled_: {
type: Boolean, type: Boolean,
...@@ -89,7 +89,7 @@ Polymer({ ...@@ -89,7 +89,7 @@ Polymer({
}, },
// </if> // </if>
// <if expr="is_win"> // <if expr="_google_chrome and is_win">
onChromeCleanupTap_: function() { onChromeCleanupTap_: function() {
settings.navigateTo(settings.routes.CHROME_CLEANUP); settings.navigateTo(settings.routes.CHROME_CLEANUP);
}, },
......
...@@ -379,7 +379,7 @@ cr.define('settings', function() { ...@@ -379,7 +379,7 @@ cr.define('settings', function() {
r.TRIGGERED_RESET_DIALOG = r.TRIGGERED_RESET_DIALOG =
r.ADVANCED.createChild('/triggeredResetProfileSettings'); r.ADVANCED.createChild('/triggeredResetProfileSettings');
r.TRIGGERED_RESET_DIALOG.isNavigableDialog = true; r.TRIGGERED_RESET_DIALOG.isNavigableDialog = true;
// <if expr="is_win"> // <if expr="_google_chrome and is_win">
// This should only be added if the feature is enabled. // This should only be added if the feature is enabled.
if (loadTimeData.getBoolean('userInitiatedCleanupsEnabled')) { if (loadTimeData.getBoolean('userInitiatedCleanupsEnabled')) {
r.CHROME_CLEANUP = r.RESET.createChild('/cleanup'); r.CHROME_CLEANUP = r.RESET.createChild('/cleanup');
......
...@@ -719,24 +719,26 @@ void AddDownloadsStrings(content::WebUIDataSource* html_source) { ...@@ -719,24 +719,26 @@ void AddDownloadsStrings(content::WebUIDataSource* html_source) {
arraysize(localized_strings)); arraysize(localized_strings));
} }
#if defined(OS_WIN) #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
void AddChromeCleanupStrings(content::WebUIDataSource* html_source) { void AddChromeCleanupStrings(content::WebUIDataSource* html_source) {
LocalizedString localized_strings[] = { LocalizedString localized_strings[] = {
{"chromeCleanupExplanation", IDS_CHROME_CLEANUP_WEBUI_EXPLANATION}, {"chromeCleanupExplanation",
IDS_SETTINGS_RESET_CLEANUP_EXPLANATION_REMOVE},
{"chromeCleanupDoneButtonLabel", {"chromeCleanupDoneButtonLabel",
IDS_CHROME_CLEANUP_WEBUI_DONE_BUTTON_LABEL}, IDS_SETTINGS_RESET_CLEANUP_DONE_BUTTON_LABEL},
{"chromeCleanupLinkShowFiles", IDS_CHROME_CLEANUP_WEBUI_LINK_SHOW_FILES}, {"chromeCleanupLinkShowFiles",
IDS_SETTINGS_RESET_CLEANUP_LINK_SHOW_FILES},
{"chromeCleanupLogsUploadPermission", IDS_CHROME_CLEANUP_LOGS_PERMISSION}, {"chromeCleanupLogsUploadPermission", IDS_CHROME_CLEANUP_LOGS_PERMISSION},
{"chromeCleanupRemoveButtonLabel", {"chromeCleanupRemoveButtonLabel",
IDS_CHROME_CLEANUP_WEBUI_REMOVE_BUTTON_LABEL}, IDS_SETTINGS_RESET_CLEANUP_REMOVE_BUTTON_LABEL},
{"chromeCleanupRestartButtonLabel", {"chromeCleanupRestartButtonLabel",
IDS_CHROME_CLEANUP_WEBUI_RESTART_BUTTON_LABEL}, IDS_SETTINGS_RESET_CLEANUP_RESTART_BUTTON_LABEL},
{"chromeCleanupTitleErrorCantRemove", {"chromeCleanupTitleErrorCantRemove",
IDS_CHROME_CLEANUP_WEBUI_TITLE_ERROR_CANT_REMOVE}, IDS_SETTINGS_RESET_CLEANUP_TITLE_ERROR_CANT_REMOVE},
{"chromeCleanupTitleRemove", IDS_CHROME_CLEANUP_WEBUI_TITLE_REMOVE}, {"chromeCleanupTitleRemove", IDS_SETTINGS_RESET_CLEANUP_TITLE_REMOVE},
{"chromeCleanupTitleRemoved", IDS_CHROME_CLEANUP_WEBUI_TITLE_REMOVED}, {"chromeCleanupTitleRemoved", IDS_SETTINGS_RESET_CLEANUP_TITLE_REMOVED},
{"chromeCleanupTitleRemoving", IDS_CHROME_CLEANUP_WEBUI_TITLE_REMOVING}, {"chromeCleanupTitleRemoving", IDS_SETTINGS_RESET_CLEANUP_TITLE_REMOVING},
{"chromeCleanupTitleRestart", IDS_CHROME_CLEANUP_WEBUI_TITLE_RESTART}, {"chromeCleanupTitleRestart", IDS_SETTINGS_RESET_CLEANUP_TITLE_RESTART},
}; };
AddLocalizedStringsBulk(html_source, localized_strings, AddLocalizedStringsBulk(html_source, localized_strings,
arraysize(localized_strings)); arraysize(localized_strings));
...@@ -753,11 +755,11 @@ void AddChromeCleanupStrings(content::WebUIDataSource* html_source) { ...@@ -753,11 +755,11 @@ void AddChromeCleanupStrings(content::WebUIDataSource* html_source) {
"Find and remove harmful software"); "Find and remove harmful software");
base::string16 powered_by_html = base::string16 powered_by_html =
l10n_util::GetStringFUTF16(IDS_CHROME_CLEANUP_WEBUI_FOOTER_POWERED_BY, l10n_util::GetStringFUTF16(IDS_SETTINGS_RESET_CLEANUP_FOOTER_POWERED_BY,
L"<span id='powered-by-logo'></span>"); L"<span id='powered-by-logo'></span>");
html_source->AddString("chromeCleanupPoweredByHtml", powered_by_html); html_source->AddString("chromeCleanupPoweredByHtml", powered_by_html);
} }
#endif // defined(OS_WIN) #endif // defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
void AddResetStrings(content::WebUIDataSource* html_source) { void AddResetStrings(content::WebUIDataSource* html_source) {
LocalizedString localized_strings[] = { LocalizedString localized_strings[] = {
...@@ -2069,9 +2071,9 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source, ...@@ -2069,9 +2071,9 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
AddAboutStrings(html_source); AddAboutStrings(html_source);
AddAppearanceStrings(html_source, profile); AddAppearanceStrings(html_source, profile);
#if defined(OS_WIN) #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
AddChromeCleanupStrings(html_source); AddChromeCleanupStrings(html_source);
#endif // defined(OS_WIN) #endif // defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
AddChangePasswordStrings(html_source); AddChangePasswordStrings(html_source);
AddClearBrowsingDataStrings(html_source); AddClearBrowsingDataStrings(html_source);
......
...@@ -547,7 +547,7 @@ TEST_F('CrSettingsAppearanceFontsPageTest', 'All', function() { ...@@ -547,7 +547,7 @@ TEST_F('CrSettingsAppearanceFontsPageTest', 'All', function() {
mocha.run(); mocha.run();
}); });
GEN('#if defined(OS_WIN)'); GEN('#if defined(OS_WIN) and defined(GOOGLE_CHROME_BUILD)');
/** /**
* @constructor * @constructor
* @extends {CrSettingsBrowserTest} * @extends {CrSettingsBrowserTest}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment