Skip to content

Commit

Permalink
Merge pull request #4070 from brave/fix-7087
Browse files Browse the repository at this point in the history
Remove //content deps for iOS build
  • Loading branch information
AlexeyBarabash authored Nov 25, 2019
2 parents f8a2849 + 001a559 commit 4c60424
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/brave_sync/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ source_set("prefs") {

deps = [
"//components/prefs",
"//content/public/browser",
]

if (!is_ios) {
deps += [ "//content/public/browser" ]
}
}

source_set("switches") {
Expand Down
4 changes: 4 additions & 0 deletions components/brave_sync/brave_sync_prefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
PrefService* prefs = profile->GetPrefs();
prefs->ClearPref(brave_sync::prefs::kSyncPrevSeed);
}
#endif // !defined(OS_IOS)

namespace brave_sync {
namespace prefs {
Expand Down
2 changes: 2 additions & 0 deletions components/brave_sync/brave_sync_prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ namespace user_prefs {
class PrefRegistrySyncable;
}

#if !defined(OS_IOS)
void MigrateBraveSyncPrefs(Profile* profile);
#endif // !defined(OS_IOS)

namespace brave_sync {

Expand Down

0 comments on commit 4c60424

Please sign in to comment.