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

Unified Diff: chrome/browser/ui/webui/chromeos/login/network_state_informer.cc

Issue 2657003002: Report ONLINE for the Active Directory devices (Closed)
Patch Set: Created 3 years, 11 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/ui/webui/chromeos/login/network_state_informer.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/network_state_informer.cc b/chrome/browser/ui/webui/chromeos/login/network_state_informer.cc
index 2dd101ccd3b8aec8eb0ac6288c8cea2c6a365f54..3b3c24ea701a15e5d9df715612859699b21fa5be 100644
--- a/chrome/browser/ui/webui/chromeos/login/network_state_informer.cc
+++ b/chrome/browser/ui/webui/chromeos/login/network_state_informer.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/chromeos/login/screens/network_error.h"
+#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
#include "chromeos/network/network_state.h"
#include "chromeos/network/network_state_handler.h"
#include "chromeos/network/proxy/proxy_config_handler.h"
@@ -82,6 +83,17 @@ NetworkStateInformer::State GetStateForDefaultNetwork() {
if (network->is_captive_portal())
return NetworkStateInformer::CAPTIVE_PORTAL;
}
+
+ // If there is no connection to the internet report it as online for the
+ // Active Directory devices. These devices does not have to be online to reach
+ // the server.
+ // TODO(rsorokin): Fix reporting network connectivity for Active Directory
+ // devices. (see crbug.com/685691)
+ policy::BrowserPolicyConnectorChromeOS* connector =
+ g_browser_process->platform_part()->browser_policy_connector_chromeos();
+ if (connector->IsActiveDirectoryManaged())
+ return NetworkStateInformer::ONLINE;
+
return NetworkStateInformer::OFFLINE;
}
« 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