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

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

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 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.cc
diff --git a/content/browser/background_sync/background_sync_network_observer.cc b/content/browser/background_sync/background_sync_network_observer.cc
index fafb1e68a1f9e4c3e98c92ba8ebf57651c85ee2d..1c6f2bd98163864f14e98ed2647fdf00a6550117 100644
--- a/content/browser/background_sync/background_sync_network_observer.cc
+++ b/content/browser/background_sync/background_sync_network_observer.cc
@@ -4,6 +4,9 @@
#include "content/browser/background_sync/background_sync_network_observer.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "content/public/browser/browser_thread.h"
namespace content {
@@ -47,7 +50,8 @@ bool BackgroundSyncNetworkObserver::NetworkSufficient(
void BackgroundSyncNetworkObserver::NotifyNetworkChanged() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- base::MessageLoop::current()->PostTask(FROM_HERE, network_changed_callback_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ network_changed_callback_);
}
void BackgroundSyncNetworkObserver::OnNetworkChanged(
« no previous file with comments | « content/browser/background_sync/background_sync_manager_unittest.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698