-
Notifications
You must be signed in to change notification settings - Fork 940
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
Runs initMiscAndroidMetrics from an UI thread in case of connection failure #21171
Conversation
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.
lgtm
cc80805
to
556b4e6
Compare
[puLL-Merge] - brave/brave-core@21171 The patch appears to pertain to an Android application, most likely a browser given the File 1: BraveActivity.java This file seems to represent an activity class for the Brave browser on Android. The Java activity has been modified as follows:
File 2: MiscAndroidMetricsConnectionErrorHandler.java This file seems to handle a connection error scenario for some metrics-related functionality—specifically, it seems to reconnect to some service or functionality associated with metrics when a connection fails. The patch includes:
Commit Information:
Overall, this patch modifies the initialization of certain metrics-related functionality so that it always happens on the Android UI thread, which is a common pattern in Android development to avoid threading issues like ANRs (Application Not Responding errors) or crashes due to non-thread-safe operations being performed off the UI thread. It is important to note that in the context of a diff or patch, lines that start with:
|
Resolves brave/brave-browser#34649
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
There are no steps to replicate it.