Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: content/browser/background_sync/background_sync_manager.h

Issue 1294603003: [BackgroundSync] Trigger Background Sync events when Chrome is backgrounded on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update browser tests to trigger network observer directly Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/background_sync/background_sync_manager.h
diff --git a/content/browser/background_sync/background_sync_manager.h b/content/browser/background_sync/background_sync_manager.h
index 7b2ab83d4b90d5b32f8cb81a6ddf80783edb8db9..2a949a22051f6f4633751c22e1da51e178b2f2af 100644
--- a/content/browser/background_sync/background_sync_manager.h
+++ b/content/browser/background_sync/background_sync_manager.h
@@ -100,6 +100,10 @@ class CONTENT_EXPORT BackgroundSyncManager
const GURL& pattern) override;
void OnStorageWiped() override;
+ BackgroundSyncNetworkObserver* GetNetworkObserverForTesting() {
+ return network_observer_.get();
+ }
+
protected:
explicit BackgroundSyncManager(
const scoped_refptr<ServiceWorkerContextWrapper>& context);

Powered by Google App Engine
This is Rietveld 408576698