Commit fb5b5ff1 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

Browser: Rename chrome to browser in dark theme string


Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent 165b93d3
Pipeline #150692 passed with stages
in 532 minutes and 10 seconds
From 40cc9b9712050cf67374789bd3172a693a0c8bc5 Mon Sep 17 00:00:00 2001
From aae9f02fc5ef2e5d0cdfc87781a6009b73bf4c2c Mon Sep 17 00:00:00 2001
From: Aayush Gupta <theimpulson@e.email>
Date: Fri, 26 Nov 2021 07:12:30 +0000
Subject: [PATCH] Browser: Rename strings to browser
......@@ -9,11 +9,12 @@ Signed-off-by: Aayush Gupta <theimpulson@e.email>
...radio_button_group_homepage_preference.xml | 4 +-
.../java/res/xml/about_chrome_preferences.xml | 3 ++
.../android/java/res/xml/main_preferences.xml | 2 +-
.../about_settings/AboutChromeSettings.java | 10 ++---
.../about_settings/AboutChromeSettings.java | 10 ++--
.../site_settings/ManageSpaceActivity.java | 6 +--
.../WebContentsDarkModeMessageController.java | 2 +-
.../strings/android_chrome_strings.grd | 2 +
.../ui/android/strings/foundation_e.grdp | 44 +++++++++++++++++++
8 files changed, 63 insertions(+), 14 deletions(-)
.../ui/android/strings/foundation_e.grdp | 49 +++++++++++++++++++
9 files changed, 69 insertions(+), 15 deletions(-)
create mode 100644 chrome/browser/ui/android/strings/foundation_e.grdp
diff --git a/chrome/android/java/res/layout/manage_space_activity.xml b/chrome/android/java/res/layout/manage_space_activity.xml
......@@ -157,8 +158,21 @@ index 69f2ba955ca4e..308181c06128e 100644
builder.create().show();
}
}
diff --git a/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/WebContentsDarkModeMessageController.java b/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/WebContentsDarkModeMessageController.java
index 1091c418a12d9..6422dfbe06a2b 100644
--- a/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/WebContentsDarkModeMessageController.java
+++ b/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/WebContentsDarkModeMessageController.java
@@ -107,7 +107,7 @@ public class WebContentsDarkModeMessageController {
.with(MessageBannerProperties.ICON_TINT_COLOR,
MessageBannerProperties.TINT_NONE)
.with(MessageBannerProperties.TITLE,
- resources.getString(R.string.auto_dark_message_title))
+ resources.getString(R.string.auto_dark_message_title_e))
.with(MessageBannerProperties.PRIMARY_BUTTON_TEXT,
resources.getString(R.string.auto_dark_message_button))
.with(MessageBannerProperties.ON_PRIMARY_ACTION,
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
index 681c5763d0412..12c4de3c6c164 100644
index 3dca6672b74a0..9408db809dd0e 100644
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
@@ -198,6 +198,8 @@ CHAR_LIMIT guidelines:
......@@ -172,10 +186,10 @@ index 681c5763d0412..12c4de3c6c164 100644
<!-- Main Preferences -->
diff --git a/chrome/browser/ui/android/strings/foundation_e.grdp b/chrome/browser/ui/android/strings/foundation_e.grdp
new file mode 100644
index 0000000000000..1ef0785cb5372
index 0000000000000..32ad108881f24
--- /dev/null
+++ b/chrome/browser/ui/android/strings/foundation_e.grdp
@@ -0,0 +1,44 @@
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<grit-part>
+
......@@ -219,6 +233,11 @@ index 0000000000000..1ef0785cb5372
+ The /e/ browser is a fork of Chromium/Bromite.\n\t\n\tThe Bromite browser:\n\t- offers privacy-compliant search engines by default\n\t- includes several "ungoogling" patches\n\t- offers an Ad-blocker by default\n\t\nThe /e/ browser adds specific settings such as different default search engines, async DNS disabled by default, do-not-track-enabled by default, ...
+ </message>
+
+ <!-- Auto-darken web content -->
+ <message name="IDS_AUTO_DARK_MESSAGE_TITLE_E" desc="Message shown that informs the user auto darkening of website contents has been enabled.">
+ Dark theme for sites is on in Browser
+ </message>
+
+</grit-part>
--
2.25.1
......
Supports Markdown
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