|
Allow cross dependencies between BCKSF and BSKSF
For incremental conversion of iOS code from BrowserContextKeyedServiceFactories
to BrowserStateKeyedServiceFactories, iOS uses cross-dependencies between both
types of factories.
This CL had two virtual methods to KeyedServiceBaseFactory to convert a context
to the correct type (content::BrowserContext or web::BrowserState) and back so
that we can have BrowserStateKeyedServiceFactories registered into a
BrowserContextDependencyManager (temporary).
Implement the method in all derived classes and refactor the implementation
of GetAssociatedPrefRegistry that no longer needs to be virtual.
BUG= 459020, 478763
Committed: https://crrev.com/8c1791c63d6a05455eb6c1413e01844496a119f4
Cr-Commit-Position: refs/heads/master@{#326782}
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+302 lines, -224 lines) |
Patch |
 |
M |
components/keyed_service.gypi
|
View
|
1
2
3
|
4 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/BUILD.gn
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/browser_context_dependency_manager.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/browser_context_dependency_manager.cc
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/browser_context_keyed_base_factory.h
|
View
|
1
2
3
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/browser_context_keyed_base_factory.cc
|
View
|
1
2
3
|
2 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/browser_context_keyed_service_factory.h
|
View
|
1
2
3
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/browser_context_keyed_service_factory.cc
|
View
|
1
2
3
|
2 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h
|
View
|
1
2
3
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc
|
View
|
1
2
3
|
2 chunks |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/core/BUILD.gn
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/core/dependency_manager.h
|
View
|
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/core/dependency_manager.cc
|
View
|
1
2
3
|
6 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/core/keyed_service_base_factory.h
|
View
|
1
2
3
4
|
4 chunks |
+57 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/core/keyed_service_base_factory.cc
|
View
|
1
2
3
4
|
5 chunks |
+34 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/DEPS
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
A |
components/keyed_service/ios/browser_state_context_converter.h
|
View
|
1
2
3
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/keyed_service/ios/browser_state_context_converter.cc
|
View
|
1
2
3
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/browser_state_dependency_manager.h
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/browser_state_dependency_manager.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/browser_state_helper.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -32 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/browser_state_helper.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -50 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/browser_state_keyed_service_factory.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
View
|
1
2
3
4
|
3 chunks |
+33 lines, -20 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc
|
View
|
1
2
3
4
|
3 chunks |
+34 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/suggestions/suggestions_service_factory.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/suggestions/suggestions_service_factory.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 22 (9 generated)
|