Commit ffc5383a authored by Sven Zheng's avatar Sven Zheng Committed by Commit Bot

Use real invalidation service for external tests

Bug: 1010568
Change-Id: I7f360ee361e486451aca2b21138c3a493a7d36a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1846474
Commit-Queue: Sven Zheng <svenzheng@chromium.org>
Reviewed-by: default avatarMohamed Amir Yosef <mamir@chromium.org>
Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703905}
parent 955ac63c
...@@ -930,6 +930,12 @@ void SyncTest::SetUpInProcessBrowserTestFixture() { ...@@ -930,6 +930,12 @@ void SyncTest::SetUpInProcessBrowserTestFixture() {
void SyncTest::OnWillCreateBrowserContextServices( void SyncTest::OnWillCreateBrowserContextServices(
content::BrowserContext* context) { content::BrowserContext* context) {
if (UsingExternalServers()) {
// DO NOTHING. External live sync servers use GCM to notify profiles of
// any invalidations in sync'ed data. No need to provide a testing
// factory the ProfileInvalidationProvider.
return;
}
invalidation::ProfileInvalidationProviderFactory::GetInstance() invalidation::ProfileInvalidationProviderFactory::GetInstance()
->SetTestingFactory( ->SetTestingFactory(
context, context,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment