Index: chrome/browser/ui/webui/policy_ui.cc |
diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc |
index 6a8f72fb6f55d0a58c3c8d8ef2d0130c507f02af..d2e73e74be61fda360dd2c42cc5b626cb4339405 100644 |
--- a/chrome/browser/ui/webui/policy_ui.cc |
+++ b/chrome/browser/ui/webui/policy_ui.cc |
@@ -36,7 +36,6 @@ |
#include "components/policy/core/common/policy_namespace.h" |
#include "components/policy/core/common/policy_service.h" |
#include "components/policy/core/common/policy_types.h" |
-#include "components/policy/core/common/remote_commands/remote_commands_service.h" |
#include "components/policy/core/common/schema.h" |
#include "components/policy/core/common/schema_map.h" |
#include "components/policy/core/common/schema_registry.h" |
@@ -53,7 +52,6 @@ |
#include "ui/base/l10n/time_format.h" |
#if defined(OS_CHROMEOS) |
-#include "chrome/browser/browser_process_platform_part.h" |
#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
#include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
#include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
@@ -809,18 +807,6 @@ |
} |
void PolicyUIHandler::HandleReloadPolicies(const base::ListValue* args) { |
-#if defined(OS_CHROMEOS) |
- // Allow user to manually fetch remote commands, in case invalidation |
- // service is not working properly. |
- // TODO(binjin): evaluate and possibly remove this after invalidation |
- // service is landed and tested. http://crbug.com/480982 |
- policy::BrowserPolicyConnectorChromeOS* connector = |
- g_browser_process->platform_part()->browser_policy_connector_chromeos(); |
- connector->GetDeviceCloudPolicyManager() |
- ->core() |
- ->remote_commands_service() |
- ->FetchRemoteCommands(); |
-#endif |
GetPolicyService()->RefreshPolicies( |
base::Bind(&PolicyUIHandler::OnRefreshPoliciesDone, |
weak_factory_.GetWeakPtr())); |