-
Notifications
You must be signed in to change notification settings - Fork 972
Add DebounceService for iOS #20315
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
Add DebounceService for iOS #20315
Conversation
64bb790
to
a808318
Compare
8daf5b4
to
370617d
Compare
dc5399b
to
2c8dcb8
Compare
2c8dcb8
to
f682ca7
Compare
f682ca7
to
4c0cbef
Compare
4c0cbef
to
7c5571f
Compare
#include "ios/chrome/browser/shared/model/application_context/application_context.h" | ||
#include "ios/chrome/browser/shared/model/browser_state/chrome_browser_state.h" | ||
|
||
@implementation DeAmpPrefs { |
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.
shouldn't we just expose a generic interface to prefs? cc @Brandon-T
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 followed along other examples we had but I agree some generic approach would be perhaps nicer.
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.
can we look at this in a follow-up?
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.
Personally I think it's a good idea. But while I opened up some discussion around a generic approach there was no conclusive decision about this. Im willing to re-open this discussion more openly.
components/debounce/content/browser/debounce_navigation_throttle.cc
Outdated
Show resolved
Hide resolved
8b71172
to
ea66282
Compare
ea66282
to
670cd70
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.
iOS++
dd11f33
to
b4dd7a9
Compare
5ed4d71
to
0e57c39
Compare
@@ -0,0 +1,3 @@ | |||
include_rules = [ | |||
"+content/public/browser", | |||
] |
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.
missing newline here. I recommend configuring your editor to always add it
3395336
to
65d65ed
Compare
@bridiver I removed a bunch of unneeded imports. But as stated is there a mechanism in which I can detect unused imports or is it just a manual process of cross referencing imports with code usage? |
efea717
to
9fcae42
Compare
We've discussed adding automation for this but AFAIK we don't have anything just yet. |
3f0d497
to
8d3743e
Compare
[puLL-Merge] - brave/brave-core@20315 DescriptionThis PR refactors the ChangesChanges
Security Hotspots
|
Resolves brave/brave-browser#33275
Expose the debounce service to iOS. In order to do this a couple of things had to be done:
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: