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

Unified Diff: net/android/network_change_notifier_factory_android.cc

Issue 10979048: Fix potential threading issues in NetworkChangeNotifierAndroid. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « net/android/network_change_notifier_factory_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/network_change_notifier_factory_android.cc
diff --git a/net/android/network_change_notifier_factory_android.cc b/net/android/network_change_notifier_factory_android.cc
index a28a69e3463302f3e3c963ed79873c9243fb90d5..8ba7943588e8e67b3bd733700026ddc7d2186eab 100644
--- a/net/android/network_change_notifier_factory_android.cc
+++ b/net/android/network_change_notifier_factory_android.cc
@@ -8,12 +8,15 @@
namespace net {
-NetworkChangeNotifierFactoryAndroid::NetworkChangeNotifierFactoryAndroid() {}
+NetworkChangeNotifierFactoryAndroid::NetworkChangeNotifierFactoryAndroid(
+ base::TaskRunner* ui_task_runner)
+ : ui_task_runner_(ui_task_runner) {
+}
NetworkChangeNotifierFactoryAndroid::~NetworkChangeNotifierFactoryAndroid() {}
NetworkChangeNotifier* NetworkChangeNotifierFactoryAndroid::CreateInstance() {
- return new NetworkChangeNotifierAndroid();
+ return new NetworkChangeNotifierAndroid(ui_task_runner_);
}
} // namespace net
« no previous file with comments | « net/android/network_change_notifier_factory_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698