| 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 018bbae5ab270ecfc3905a191a9fbb48dd63cb93..13058d97c4d096000152d02e5c621b6dde89000c 100644
|
| --- a/content/browser/background_sync/background_sync_manager.cc
|
| +++ b/content/browser/background_sync/background_sync_manager.cc
|
| @@ -19,6 +19,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 {
|
| @@ -196,9 +197,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())));
|
| }
|
|
|