| Index: content/browser/background_sync/background_sync_manager.cc
|
| diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
|
| index 07ac7d826da13d27755dc09ab46022da5a1232f3..477b31f02d7edf62866357fabacea23406c72b80 100644
|
| --- a/content/browser/background_sync/background_sync_manager.cc
|
| +++ b/content/browser/background_sync/background_sync_manager.cc
|
| @@ -21,6 +21,7 @@
|
|
|
| #if defined(OS_ANDROID)
|
| #include "content/browser/android/background_sync_launcher_android.h"
|
| +#include "content/browser/android/background_sync_network_observer_android.h"
|
| #endif
|
|
|
| namespace content {
|
| @@ -221,9 +222,15 @@ BackgroundSyncManager::BackgroundSyncManager(
|
|
|
| service_worker_context_->AddObserver(this);
|
|
|
| +#if defined(OS_ANDROID)
|
| + network_observer_.reset(new BackgroundSyncNetworkObserverAndroid(
|
| + base::Bind(&BackgroundSyncManager::OnNetworkChanged,
|
| + weak_ptr_factory_.GetWeakPtr())));
|
| +#else
|
| network_observer_.reset(new BackgroundSyncNetworkObserver(
|
| base::Bind(&BackgroundSyncManager::OnNetworkChanged,
|
| weak_ptr_factory_.GetWeakPtr())));
|
| +#endif
|
| power_observer_.reset(new BackgroundSyncPowerObserver(base::Bind(
|
| &BackgroundSyncManager::OnPowerChanged, weak_ptr_factory_.GetWeakPtr())));
|
| }
|
|
|