-
Notifications
You must be signed in to change notification settings - Fork 870
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
Remove //content deps for iOS build #4070
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.
Looks like CI needs a rebase :)
2c51550
to
001a559
Compare
Rebased and ensured build succeeded on mac for iOS |
@@ -13,13 +13,17 @@ | |||
#include "components/pref_registry/pref_registry_syncable.h" | |||
#include "components/prefs/pref_service.h" | |||
#include "components/prefs/scoped_user_pref_update.h" | |||
|
|||
#if !defined(OS_IOS) | |||
|
|||
#include "content/public/browser/browser_thread.h" | |||
|
|||
void MigrateBraveSyncPrefs(Profile* profile) { | |||
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
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.
please remove this DCHECK to eliminate the //content/public/browser
dependency
@@ -24,7 +24,9 @@ namespace user_prefs { | |||
class PrefRegistrySyncable; | |||
} | |||
|
|||
#if !defined(OS_IOS) | |||
void MigrateBraveSyncPrefs(Profile* 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.
also this is a problem, we can't have a dependency on Profile
in a component. Please pass the PrefService
instead
Fixes brave/brave-browser#7087
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
npm run build -- Release --channel=nightly --official_build=true --target_os=ios
Reviewer Checklist:
After-merge Checklist:
changes has landed on.