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

Unified Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 8168002: CrOS - Fix BVT autotest failures due to device concluding it is offline (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library.cc
===================================================================
--- chrome/browser/chromeos/cros/network_library.cc (revision 104007)
+++ chrome/browser/chromeos/cros/network_library.cc (working copy)
@@ -4579,6 +4579,9 @@
ethernet_ = new EthernetNetwork("eth1");
ethernet_->set_connected(true);
+ // Note: We need exactly one network connected and active, otherwise
+ // browser_tests sometimes conclude we are offline and fail.
+ ethernet_->set_is_active(true);
AddNetwork(ethernet_);
WifiNetwork* wifi1 = new WifiNetwork("fw1");
@@ -4586,7 +4589,6 @@
wifi1->set_strength(90);
wifi1->set_connected(false);
wifi1->set_connecting(true);
- wifi1->set_is_active(true);
wifi1->set_encryption(SECURITY_NONE);
wifi1->set_profile_type(PROFILE_SHARED);
AddNetwork(wifi1);
@@ -4640,7 +4642,6 @@
cellular1->set_strength(70);
cellular1->set_connected(false);
cellular1->set_connecting(true);
- cellular1->set_is_active(true);
cellular1->set_activation_state(ACTIVATION_STATE_ACTIVATED);
cellular1->set_payment_url(std::string("http://www.google.com"));
cellular1->set_usage_url(std::string("http://www.google.com"));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698