-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed crash from typing in tor window when SE extension is active
fix brave/brave-browser#15140 When OnTemplateURLServiceChanged() is called, it tries to access default search engine provider but it's null when search engine extension is installed and that extension enabled to private window. Those code is not valid now so just deleted because we can't change tor window's search engine during the run time. It was possible ago but not now.
- Loading branch information
Showing
7 changed files
with
62 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2021 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/. | ||
|
||
import("//components/gcm_driver/config.gni") | ||
|
||
# Fix: Added import loop. Need this import for using |enable_widevine| vars. | ||
# import("//third_party/widevine/cdm/widevine.gni") | ||
|
||
brave_chromium_src_chrome_browser_prefs_deps = [ | ||
"//brave/common:pref_names", | ||
"//brave/components/brave_sync", | ||
"//chrome/browser/profiles:profile", | ||
"//components/gcm_driver:gcm_buildflags", | ||
"//third_party/widevine/cdm:buildflags", | ||
] | ||
|
||
# |is_android| is used instead of |enable_widevine|. See above comment. | ||
# We enable widevine except android. | ||
if (!is_android) { | ||
brave_chromium_src_chrome_browser_prefs_deps += [ "//brave/browser/widevine" ] | ||
} | ||
|
||
if (!use_gcm_from_platform) { | ||
brave_chromium_src_chrome_browser_prefs_deps += | ||
[ "//brave/browser/gcm_driver" ] | ||
} |