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

Unified Diff: content/browser/background_sync/background_sync_network_observer.cc

Issue 1423313006: Add browser tests for clearing sync registrations with site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove TODO Created 5 years, 2 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_network_observer.cc
diff --git a/content/browser/background_sync/background_sync_network_observer.cc b/content/browser/background_sync/background_sync_network_observer.cc
index a08e7d837183f989a37c46a713523ec6d84f1689..f8a0e089ec64b97ce78ecc82e0396bcea362f501 100644
--- a/content/browser/background_sync/background_sync_network_observer.cc
+++ b/content/browser/background_sync/background_sync_network_observer.cc
@@ -65,6 +65,11 @@ void BackgroundSyncNetworkObserver::OnNetworkChanged(
NotifyManagerIfNetworkChanged(connection_type);
}
+void BackgroundSyncNetworkObserver::NotifyManagerIfNetworkChangedForTesting(
+ net::NetworkChangeNotifier::ConnectionType connection_type) {
+ NotifyManagerIfNetworkChanged(connection_type);
+}
+
void BackgroundSyncNetworkObserver::NotifyManagerIfNetworkChanged(
net::NetworkChangeNotifier::ConnectionType connection_type) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);

Powered by Google App Engine
This is Rietveld 408576698