|
|
[Sync] Allow sync start without sign-in if the local sync backend is on.
Makes all signed-in checks conditional on the local_sync_backend_enabled
flag. Great care is taken for this change to have no side-effects on sync
running in non-local mode.
There are two major changes in this CL:
1. Move the logic checking the local sync flags from ProfileSyncService
to ProfileSyncServiceFactory::BuildServiceInstanceFor.
2. Add checks and conditionally do checks if sign-in has happened only
if the local sync backend flag is not set. Back up with tests that
this works as expected.
BUG= 651409
TEST=components_unittests
Committed: https://crrev.com/645df3089e27103dbe55998c0c3692236d281e53
Cr-Commit-Position: refs/heads/master@{#440075}
Total comments: 6
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+341 lines, -117 lines) |
Patch |
 |
M |
chrome/browser/history/web_history_service_factory.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/chrome_command_line_pref_store.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_factory.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+67 lines, -34 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/sync_promo_ui.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_service.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
12 chunks |
+40 lines, -14 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_service_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+30 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/browsing_data/core/history_notice_utils_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/precache/content/precache_manager.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/suggestions/suggestions_service_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+14 lines, -19 lines |
0 comments
|
Download
|
 |
M |
components/sync/base/sync_prefs.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+16 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/driver/fake_sync_service.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/fake_sync_service.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/sync_service.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/sync_service_base.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine/engine_components_factory.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine/engine_components_factory_impl.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine/engine_components_factory_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine/test_engine_components_factory.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine/test_engine_components_factory.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine_impl/sync_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+16 lines, -15 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine_impl/sync_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+42 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine_impl/sync_scheduler_impl.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine_impl/sync_scheduler_impl.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine_impl/sync_scheduler_impl_unittest.cc
|
View
|
1
2
|
3 chunks |
+60 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine_impl/syncer_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/test/engine/mock_connection_manager.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 47 (18 generated)
|