Skip to content

Commit

Permalink
[iOS] Re-add call to prepare keyed service factories
Browse files Browse the repository at this point in the history
This used to be in our custom startup logic, but with that gone we can just place it in the chromium_src override we already have
  • Loading branch information
kylehickinson committed Nov 3, 2023
1 parent 231aeab commit c0444ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chromium_src/ios/chrome/browser/browser_state/model/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2023 The Brave Authors. All rights reserved.
# 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/.

group("model") {
deps = [ "//brave/ios/browser/browser_state" ]
}
3 changes: 3 additions & 0 deletions chromium_src/ios/chrome/browser/browser_state/model/DEPS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include_rules = [
"+brave/ios/browser/browser_state"
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "ios/chrome/browser/browser_state/model/browser_state_keyed_service_factories.h"

#include "brave/ios/browser/browser_state/brave_browser_state_keyed_service_factories.h"
#include "ios/chrome/browser/autofill/personal_data_manager_factory.h"
#include "ios/chrome/browser/bookmarks/model/bookmark_undo_service_factory.h"
#include "ios/chrome/browser/bookmarks/model/local_or_syncable_bookmark_model_factory.h"
Expand Down Expand Up @@ -53,4 +54,6 @@ void EnsureBrowserStateKeyedServiceFactoriesBuilt() {
ReadingListModelFactory::GetInstance();
SessionSyncServiceFactory::GetInstance();
SyncSetupServiceFactory::GetInstance();

brave::EnsureBrowserStateKeyedServiceFactoriesBuilt();
}

0 comments on commit c0444ce

Please sign in to comment.