Resolves brave/brave-browser#40863 With this PR, we use chromium's browser theme instead of ours. Removed all our dark mode handling code. Only left dark mode value in local state for migration. BraveCustomzieColorSchemeModeHandler was introduced to set user's theme choice to our local state prefs instead of chromium's profile color scheme. Removed. All our changes to NativeTheme are removed. Migrated current dark theme mode to per-profile browser color scheme. ThemeService migrates only once. After it's migrated, browser will have per-profile theme mode like chromium does. TEST=BraveThemeServiceTest.BraveDarkModeMigrationTest
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Copyright (c) 2020 The Brave Authors. All rights reserved.
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
source_set("browser_tests") {
|
|
testonly = true
|
|
|
|
if (is_win) {
|
|
sources = [ "background_color_tab_helper_browsertest.cc" ]
|
|
deps = [
|
|
"//chrome/browser",
|
|
"//chrome/browser:browser_process",
|
|
"//chrome/browser/profiles:profile",
|
|
"//chrome/browser/themes",
|
|
"//chrome/browser/ui",
|
|
"//chrome/test:test_support",
|
|
"//chrome/test:test_support_ui",
|
|
]
|
|
|
|
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
|
|
}
|
|
}
|
|
|
|
source_set("unittest") {
|
|
testonly = true
|
|
|
|
if (!is_android) {
|
|
sources = [ "new_tab_shows_options_unittest.cc" ]
|
|
deps = [
|
|
"//brave/browser",
|
|
"//brave/common",
|
|
"//brave/components/constants",
|
|
"//chrome/common",
|
|
"//chrome/test:test_support",
|
|
"//components/prefs",
|
|
"//content/test:test_support",
|
|
"//testing/gtest",
|
|
"//url",
|
|
]
|
|
}
|
|
}
|