[BackgroundSync] Disable BackgroundSync if no controller is available.
Disables background sync on init if the background sync controller
doesn't exist. This means that unit and browser tests that rely on
BackgroundSync need to have a mock controller available, so that is
added in this CL as well.
BUG=570713
Review URL: https://codereview.chromium.org/1540463004
Cr-Commit-Position: refs/heads/master@{#368342}
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
index 9d9e6ee..ece0a8e 100644
--- a/content/browser/storage_partition_impl.h
+++ b/content/browser/storage_partition_impl.h
@@ -86,6 +86,7 @@
private:
friend class BackgroundSyncManagerTest;
+ friend class BackgroundSyncServiceImplTest;
friend class StoragePartitionImplMap;
FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache);
FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest,