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

Unified Diff: components/policy/core/common/policy_loader_win.cc

Issue 2167103002: Remove slow test for connecting to the AD DC server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/policy_loader_win.cc
diff --git a/components/policy/core/common/policy_loader_win.cc b/components/policy/core/common/policy_loader_win.cc
index 9db0549beb69b6b70bacbb7e855159064a17bec4..d9ba5691a510f7ca215085d5f13fe74b21c68a96 100644
--- a/components/policy/core/common/policy_loader_win.cc
+++ b/components/policy/core/common/policy_loader_win.cc
@@ -295,19 +295,6 @@ void CollectEnterpriseUMAs() {
bool in_domain = base::win::IsEnrolledToDomain();
UMA_HISTOGRAM_BOOLEAN("EnterpriseCheck.InDomain", in_domain);
- if (in_domain) {
- // This check will tell us how often are domain computers actually
- // connected to the enterprise network while Chrome is running.
- HANDLE server_bind;
- if (ERROR_SUCCESS == ::DsBind(NULL, NULL, &server_bind)) {
- UMA_HISTOGRAM_COUNTS("EnterpriseCheck.DomainBindSucceeded", 1);
- ::DsUnBind(&server_bind);
- } else {
- UMA_HISTOGRAM_ENUMERATION("EnterpriseCheck.DomainCheckFailed",
- DOMAIN_CHECK_ERROR_DS_BIND,
- DOMAIN_CHECK_ERROR_SIZE);
- }
- }
}
} // namespace
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698