-
Notifications
You must be signed in to change notification settings - Fork 964
[Android] Suppress Mobile “Switch to App” Annoyances #17024
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
Conversation
4a99c33
to
5560a85
Compare
android/java/org/chromium/chrome/browser/shields/FilterListServiceFactory.java
Outdated
Show resolved
Hide resolved
browser/brave_shields/android/filter_list_service_factory_android.cc
Outdated
Show resolved
Hide resolved
5560a85
to
2dfcb83
Compare
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.
++
@@ -15,7 +15,10 @@ | |||
|
|||
import org.chromium.base.BraveFeatureList; | |||
import org.chromium.base.ContextUtils; | |||
import org.chromium.base.Log; |
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 don't think we use Log anywhere. so we need to remove unused imports
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.
updated
Handler handler = ((Interface.Proxy) cookieListOptInPageAndroidHandler).getProxyHandler(); | ||
handler.setErrorHandler(connectionErrorHandler); | ||
|
||
return cookieListOptInPageAndroidHandler; |
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.
cookieListOptInPageAndroidHandler should be filterListAndroidHandler.
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.
updated
} | ||
|
||
} // namespace android | ||
} // namespace chrome |
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.
nit : new line
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.
updated
* 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 https://mozilla.org/MPL/2.0/. */ | ||
#include "base/android/jni_android.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.
nit : new line after license string
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.
updated
return chrome::GetBrowserContextRedirectedInIncognito(context); | ||
} | ||
|
||
} // namespace brave_shields |
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.
nit : new line
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.
updated
|
||
} // namespace brave_shields | ||
|
||
#endif // BRAVE_BROWSER_BRAVE_SHIELDS_FILTER_LIST_SERVICE_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.
nit : new line
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.
updated
filterListUuid, shouldEnableFilter); | ||
} | ||
|
||
} // namespace brave_shields |
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.
nit : new line
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.
updated
|
||
} // namespace brave_shields | ||
|
||
#endif // BRAVE_COMPONENTS_BRAVE_SHIELDS_BROWSER_FILTER_LIST_SERVICE_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.
nit : new line
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.
updated
2dfcb83
to
9a417e2
Compare
c0b633f
to
5554394
Compare
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
5554394
to
b6bc84a
Compare
Resolves brave/brave-browser#25079
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:
https://user-images.githubusercontent.com/32419898/216681102-b63fefaf-b1c7-4ed2-b230-afe9ad9b6485.mp4
https://user-images.githubusercontent.com/32419898/216814698-611a647b-830a-45f7-88fc-508ffccc1c91.mp4