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

Unified Diff: chrome/browser/automation/testing_automation_provider_chromeos.cc

Issue 9147026: API for connection type (Ethernet/WIFI/WWAN ...) in NetworkChangeNotifier. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: sync Created 8 years, 7 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: chrome/browser/automation/testing_automation_provider_chromeos.cc
diff --git a/chrome/browser/automation/testing_automation_provider_chromeos.cc b/chrome/browser/automation/testing_automation_provider_chromeos.cc
index 960da57c5163aafc153b8060a29c85c28f8df626..785b6bdc53d6ecdb3ecd878954c562373c4fa8d3 100644
--- a/chrome/browser/automation/testing_automation_provider_chromeos.cc
+++ b/chrome/browser/automation/testing_automation_provider_chromeos.cc
@@ -378,7 +378,8 @@ void TestingAutomationProvider::GetNetworkInfo(DictionaryValue* args,
NetworkLibrary* network_library = CrosLibrary::Get()->GetNetworkLibrary();
return_value->SetBoolean("offline_mode",
- net::NetworkChangeNotifier::IsOffline());
+ net::NetworkChangeNotifier::GetConnectionType() ==
+ net::NetworkChangeNotifier::CONNECTION_NONE);
wtc 2012/05/11 01:35:05 Nit: this line doesn't eed to be indented.
// IP address.
return_value->SetString("ip_address", network_library->IPAddress());
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | chrome/browser/chromeos/login/login_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698