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

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

Issue 2954433002: BackgroundSync: Convert to base::BindOnce/OnceCallback/OnceClosure (Closed)
Patch Set: rename local variable Created 3 years, 6 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.h
diff --git a/content/browser/background_sync/background_sync_network_observer.h b/content/browser/background_sync/background_sync_network_observer.h
index 79aee8ffae781efdf160a15faf7434efdadf649f..c52dbe5c5271f3cc5eed6ce16098b9deb6f40c1a 100644
--- a/content/browser/background_sync/background_sync_network_observer.h
+++ b/content/browser/background_sync/background_sync_network_observer.h
@@ -18,7 +18,8 @@ class CONTENT_EXPORT BackgroundSyncNetworkObserver
public:
// Creates a BackgroundSyncNetworkObserver. |network_changed_callback| is
// called when the network connection changes asynchronously via PostMessage.
- BackgroundSyncNetworkObserver(const base::Closure& network_changed_callback);
+ BackgroundSyncNetworkObserver(
+ const base::RepeatingClosure& network_changed_callback);
~BackgroundSyncNetworkObserver() override;
@@ -48,7 +49,7 @@ class CONTENT_EXPORT BackgroundSyncNetworkObserver
net::NetworkChangeNotifier::ConnectionType connection_type_;
// The callback to run when the network changes.
- base::Closure network_changed_callback_;
+ base::RepeatingClosure network_changed_callback_;
// Set true to ignore notifications coming from the NetworkChangeNotifier
// (to prevent flakes in tests).

Powered by Google App Engine
This is Rietveld 408576698