Skip to content

Commit 71b21c6

Browse files
authored
Merge pull request #6750 from brave/maxk-fix-safe-browsing-text-1.15.x
Modifies certain Safety Check and Safe Browsing strings (1.15.x).
2 parents f7ea8c2 + b98bb6a commit 71b21c6

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

app/brave_generated_resources.grd

+11
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,17 @@ By installing this extension, you are agreeing to the Google Widevine Terms of U
261261
<message name="IDS_SETTINGS_APPEARANCE_SETTINGS_USE_AUTOCOMPLETE_BRAVE_SUGGESTED_SITES" desc="The label for settings switch controlling whether or not Brave suggested sites show up in autocomplete">
262262
Show Brave suggested sites in autocomplete suggestions
263263
</message>
264+
<!-- Settings / Safety Check -->
265+
<message name="IDS_SETTINGS_BRAVE_SAFETY_CHECK_SAFE_BROWSING_ENABLED_STANDARD_AVAILABLE_ENHANCED" desc="This text points out that Safe Browsing is enabled as standard protection.">
266+
Standard protection is on.
267+
</message>
268+
<!-- Settings / Safe Browsing -->
269+
<message name="IDS_SETTINGS_BRAVE_SAFEBROWSING_STANDARD_BULLET_TWO" desc="Second bullet point under the safe browsing standard protection mode">
270+
Checks URLs with a list of unsafe sites stored in Brave.
271+
</message>
272+
<message name="IDS_SETTINGS_BRAVE_SAFEBROWSING_NONE_DESC" desc="Description for safe browsing no protection mode">
273+
Does not protect you against dangerous websites, downloads, and extensions.
274+
</message>
264275
<!-- New Tab Page -->
265276
<message name="IDS_SETTINGS_NEW_TAB" desc="The text label for the New Tab settings page">
266277
New Tab Page
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Copyright (c) 2020 The Brave Authors. All rights reserved.
2+
* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
4+
* You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
6+
#include "brave/grit/brave_generated_resources.h"
7+
#include "chrome/grit/generated_resources.h"
8+
9+
#undef IDS_SETTINGS_SAFETY_CHECK_SAFE_BROWSING_ENABLED_STANDARD_AVAILABLE_ENHANCED // NOLINT
10+
// NOLINTNEXTLINE
11+
#define IDS_SETTINGS_SAFETY_CHECK_SAFE_BROWSING_ENABLED_STANDARD_AVAILABLE_ENHANCED \
12+
IDS_SETTINGS_BRAVE_SAFETY_CHECK_SAFE_BROWSING_ENABLED_STANDARD_AVAILABLE_ENHANCED // NOLINT
13+
14+
#include "../../../../../../../chrome/browser/ui/webui/settings/safety_check_handler.cc"

chromium_src/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ void BraveAddLocalizedStrings(content::WebUIDataSource*, Profile*);
2828
#define IDS_SETTINGS_EDIT_PERSON IDS_SETTINGS_BRAVE_EDIT_PROFILE
2929
#undef IDS_SETTINGS_PROFILE_NAME_AND_PICTURE
3030
#define IDS_SETTINGS_PROFILE_NAME_AND_PICTURE IDS_SETTINGS_BRAVE_EDIT_PROFILE
31+
#undef IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_TWO
32+
#define IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_TWO \
33+
IDS_SETTINGS_BRAVE_SAFEBROWSING_STANDARD_BULLET_TWO
34+
#undef IDS_SETTINGS_SAFEBROWSING_NONE_DESC
35+
#define IDS_SETTINGS_SAFEBROWSING_NONE_DESC \
36+
IDS_SETTINGS_BRAVE_SAFEBROWSING_NONE_DESC
37+
3138
#define GetVersionNumber GetBraveVersionNumberForDisplay
3239

3340
#include "../../../../../../../chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc"

0 commit comments

Comments
 (0)