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

Unified Diff: net/android/network_change_notifier_android_unittest.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
Index: net/android/network_change_notifier_android_unittest.cc
diff --git a/net/android/network_change_notifier_android_unittest.cc b/net/android/network_change_notifier_android_unittest.cc
index 356ac4c499dc95d19e7e61523e80a2a2c68fedbf..a52b992111defa1583183a8c82dd67cc817951b2 100644
--- a/net/android/network_change_notifier_android_unittest.cc
+++ b/net/android/network_change_notifier_android_unittest.cc
@@ -59,7 +59,9 @@ class NetworkChangeNotifierAndroidTest : public testing::Test {
protected:
virtual void SetUp() {
- notifier_.reset(new NetworkChangeNotifierAndroid());
+ notifier_.reset(
+ new NetworkChangeNotifierAndroid(
+ MessageLoop::current()->message_loop_proxy()));
connection_type_observer_.reset(new TestConnectionTypeObserver());
NetworkChangeNotifier::AddConnectionTypeObserver(
connection_type_observer_.get());
« no previous file with comments | « net/android/network_change_notifier_android.cc ('k') | net/android/network_change_notifier_factory_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698