Skip to content
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

Merged
merged 1 commit into from
Nov 25, 2019
Merged

Remove //content deps for iOS build #4070

merged 1 commit into from
Nov 25, 2019

Conversation

AlexeyBarabash
Copy link
Contributor

@AlexeyBarabash AlexeyBarabash commented Nov 25, 2019

Fixes brave/brave-browser#7087

Submitter Checklist:

Test Plan:

npm run build -- Release --channel=nightly --official_build=true --target_os=ios

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

@AlexeyBarabash AlexeyBarabash added CI/skip-android Do not run CI builds for Android CI/skip-linux CI/skip-macos-x64 Do not run CI builds for macOS x64 labels Nov 25, 2019
@AlexeyBarabash AlexeyBarabash self-assigned this Nov 25, 2019
Copy link
Collaborator

@kylehickinson kylehickinson left a 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 :)

@AlexeyBarabash
Copy link
Contributor Author

Rebased and ensured build succeeded on mac for iOS

@AlexeyBarabash AlexeyBarabash marked this pull request as ready for review November 25, 2019 18:58
@AlexeyBarabash AlexeyBarabash merged commit 4c60424 into master Nov 25, 2019
@AlexeyBarabash AlexeyBarabash deleted the fix-7087 branch November 25, 2019 19:30
@@ -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);
Copy link
Collaborator

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);
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-macos-x64 Do not run CI builds for macOS x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS build failed after brave-core PR 3988
4 participants