-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Chromium 70.0.3528.4 #358
Conversation
This is ready for review |
@@ -10,7 +10,7 @@ deps = { | |||
"vendor/boto": "https://github.com/boto/boto@f7574aa6cc2c819430c1f05e9a1a1a666ef8169b", | |||
"vendor/python-patch": "https://github.com/svn2github/python-patch@a336a458016ced89aba90dfc3f4c8222ae3b1403", | |||
"vendor/sparkle": "https://github.com/brave/Sparkle.git@c0759cce415d7c0feae45005c8a013b1898711f0", | |||
"vendor/bat-native-ledger": "https://github.com/brave-intl/bat-native-ledger@a3e64797bf6ebbfa39a60240db8d82995f97ebd9", | |||
"vendor/bat-native-ledger": "https://github.com/brave-intl/bat-native-ledger@123d1dec129528390eaf583d04e5dc2b6c426713", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was this bumped to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumped to same as what it was + this:
brave-intl/bat-native-ledger@123d1de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, I guess I had already removed the post task stuff but just forgot about the header at that point
@@ -46,7 +46,7 @@ static void PostPerform(id target, SEL sel, id arg) { | |||
|
|||
scoped_refptr<PerformBridge> op = new PerformBridge(target, sel, arg); | |||
base::PostTaskWithTraits(FROM_HERE, | |||
{base::MayBlock(), base::TaskPriority::BACKGROUND, | |||
{base::MayBlock(), base::TaskPriority::BEST_EFFORT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure this is equivalent? Sounds worse?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git log -S for BACKGROUND
changed to that in the commit I looked at.
@@ -7,8 +7,6 @@ namespace content { | |||
void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( | |||
const base::CommandLine& command_line) { | |||
SetRuntimeFeaturesDefaultsAndUpdateFromArgs_ChromiumImpl(command_line); | |||
|
|||
WebRuntimeFeatures::EnableAutoplayMutedVideos(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @darkdh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chrome_extra_parts_[i]->PreEarlyInitialization(); | ||
|
||
- browser_process_ = std::make_unique<BrowserProcessImpl>(); | ||
+ browser_process_ = std::make_unique<BraveBrowserProcessImpl>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fine, but I thought you were going to replace these with chromium_src overrides?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not added here, will be doing it in a followup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR'ed.
firefox.services_supported = importer::HISTORY | importer::FAVORITES | | ||
importer::PASSWORDS | importer::SEARCH_ENGINES | | ||
- importer::AUTOFILL_FORM_DATA; | ||
+ importer::AUTOFILL_FORM_DATA | importer::COOKIES; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @darkdh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you didn't work on this for brave-core, but you have experience with it from muon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bbondy why removing this? This is required for import cookies option from Firefox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding, this was an unintentional miss when applying the patch manually. Btw this patch is really big and we should consider reformatting some of the code to make it easier to rebase.
diff --git a/chrome/browser/importer/importer_list.cc b/chrome/browser/importer/importer_list.cc
index c8b1156c1be3d4b31c266b723e3a3ea9e50c73e8..a0dfd62cb0a9aad31573604d4bd884ca4a9cb7e6 100644
--- a/chrome/browser/importer/importer_list.cc
+++ b/chrome/browser/importer/importer_list.cc
@@ -7,9 +7,13 @@
#include <stdint.h>
#include "base/bind.h"
+#include "base/strings/utf_string_conversions.h"
#include "base/task/post_task.h"
#include "base/task/task_traits.h"
#include "base/threading/thread_restrictions.h"
+#include "base/values.h"
+#include "brave/common/importer/brave_importer_utils.h"
+#include "brave/common/importer/chrome_importer_utils.h"
#include "build/build_config.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/common/importer/firefox_importer_utils.h"
@@ -29,6 +33,9 @@
#include "chrome/common/importer/edge_importer_utils_win.h"
#endif
+void DetectChromeProfiles(std::vector<importer::SourceProfile>* profiles);
+void DetectBraveProfiles(std::vector<importer::SourceProfile>* profiles);
+
namespace {
#if defined(OS_WIN)
@@ -136,21 +143,37 @@ std::vector<importer::SourceProfile> DetectSourceProfilesWorker(
#if defined(OS_WIN)
if (shell_integration::IsFirefoxDefaultBrowser()) {
DetectFirefoxProfiles(locale, &profiles);
+ DetectBraveProfiles(&profiles);
DetectBuiltinWindowsProfiles(&profiles);
+ DetectChromeProfiles(&profiles);
} else {
DetectBuiltinWindowsProfiles(&profiles);
+ DetectBraveProfiles(&profiles);
DetectFirefoxProfiles(locale, &profiles);
+ DetectChromeProfiles(&profiles);
}
#elif defined(OS_MACOSX)
if (shell_integration::IsFirefoxDefaultBrowser()) {
DetectFirefoxProfiles(locale, &profiles);
+ DetectBraveProfiles(&profiles);
DetectSafariProfiles(&profiles);
+ DetectChromeProfiles(&profiles);
} else {
DetectSafariProfiles(&profiles);
+ DetectBraveProfiles(&profiles);
DetectFirefoxProfiles(locale, &profiles);
+ DetectChromeProfiles(&profiles);
}
#else
- DetectFirefoxProfiles(locale, &profiles);
+ if (shell_integration::IsFirefoxDefaultBrowser()) {
+ DetectFirefoxProfiles(locale, &profiles);
+ DetectBraveProfiles(&profiles);
+ DetectChromeProfiles(&profiles);
+ } else {
+ DetectBraveProfiles(&profiles);
+ DetectChromeProfiles(&profiles);
+ DetectFirefoxProfiles(locale, &profiles);
+ }
#endif
if (include_interactive_profiles) {
importer::SourceProfile bookmarks_profile;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we have a main issue for minimizing importer patch brave/brave-browser#511
|
||
std::unique_ptr<ChromeNetworkDelegate> chrome_network_delegate( | ||
- new ChromeNetworkDelegate( | ||
+ new BraveProfileNetworkDelegate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above. I'm fine with approving these, just thought you said you were going to change them so it didn't come up again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had said I was going to do a PR after the rebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one not possible using the current methods because there are other ChromeNetworkDelegate
in the same file that we don't want to replace. We need a stronger preprocessor for this one or yet to be discovered methods.
- controller_(new AutocompleteController( | ||
+ controller_(new BraveAutocompleteController( | ||
base::WrapUnique(new ChromeAutocompleteProviderClient(profile)), | ||
- controller_(std::make_unique<AutocompleteController>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just marking these for potential chromium_src overrides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep
@@ -20,6 +20,7 @@ index 38382324ffac53ed38d12b69cf4931b17823099a..e2bb074bc919929bed40bec065c4563a | |||
toolbar_model_delegate_(new BrowserToolbarModelDelegate(this)), | |||
live_tab_context_(new BrowserLiveTabContext(this)), | |||
synced_window_delegate_(new BrowserSyncedWindowDelegate(this)), | |||
hosted_app_controller_(MaybeCreateHostedAppController(this)), | |||
bookmark_bar_state_(BookmarkBar::HIDDEN), | |||
- command_controller_(new chrome::BrowserCommandController(this)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just marking these for potential chromium_src overrides
@@ -9,8 +9,8 @@ index be8b073e7bd2778e03d99f953ffae13d90b3b151..b7308cd52bcbb50d9ed6f8e95f3c47cc | |||
+#include "brave/browser/ui/webui/brave_web_ui_controller_factory.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just marking these for potential chromium_src overrides
--- a/chrome/common/pref_names.h | ||
+++ b/chrome/common/pref_names.h | ||
@@ -358,6 +358,8 @@ extern const char kImportDialogBookmarks[]; | ||
@@ -359,6 +359,8 @@ extern const char kImportDialogBookmarks[]; | ||
extern const char kImportDialogHistory[]; | ||
extern const char kImportDialogSavedPasswords[]; | ||
extern const char kImportDialogSearchEngine[]; | ||
+extern const char kImportDialogCookies[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems related to cookies above for import cc @darkdh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like only patch line chagnes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, I only flagged it because I wasn't sure if the other patch change was correct or not. I thought maybe it got integrated into upstream and this would no longer be needed, but sounds like the other patch update was incorrect
bool AutoplayPolicy::DocumentShouldAutoplayMutedVideos( | ||
const Document& document) { | ||
+#if defined(BRAVE_CHROMIUM_BUILD) | ||
+ if (GetAutoplayPolicyForDocument(document) == AutoplayPolicy::Type::kUserGestureRequired) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @darkdh related to above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bbondy discussed this with me on Slack. And this is the solution we came up with.
@@ -1,16 +1,16 @@ | |||
diff --git a/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.cc b/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.cc | |||
index 1506e6e6346454b6c4c78cf4d541e1beb5bc06c8..56a8df86b8ce1e6d03d865b62edae617c16be0ab 100644 | |||
index 63ab728344e16edafca56e9c97f868b81b70f1cd..d13e0ec8117e15e1ef144c2b37cca1a3dd43b0c7 100644 | |||
--- a/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.cc | |||
+++ b/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection.cc | |||
@@ -37,6 +37,7 @@ | |||
|
|||
#include "base/memory/ptr_util.h" | |||
#include "base/optional.h" | |||
+#include "brave/renderer/brave_content_settings_observer_helper.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just marking these for potential chromium_src overrides
@@ -9,8 +9,8 @@ index d22b722fcad726e68e41005718a2546765be21be..807db049d22c3878a77d10230e1c8a08 | |||
+#include "brave/renderer/brave_content_settings_observer_helper.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this supposed to be here? cc @yrliou
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a blocker either way, just curious if this was accidental or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was here for various WebGL functions calling AllowFingerprinting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I guess it just didn't show up in the patch change. Thanks!
|
Sorry, my last PR introduced conflicts. |
I realize this is already fixed once we merge Brave Rewards, but this is needed in the meantime
bundle_egl_libraries is not declared though so we can't override it without a patch
Fix brave/brave-browser#834
Related: brave/brave-browser#835
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist: