[PolicyLogs] Cleaning Up Policy Logs Flags

chrome://policy/logs launched earlier in the year, but the feature
flags are still in the codebase. This is a CL for the cleanup.

Bug: 1493446
Change-Id: I18f9dc5199196b86ad7ffe78c2fd3232cdd07070
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4950183
Reviewed-by: Julian Pastarmov <[email protected]>
Code-Coverage: [email protected] <[email protected]>
Commit-Queue: Salma Elmahallawy <[email protected]>
Reviewed-by: Mike Dougherty <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1212122}
diff --git a/chrome/browser/ui/webui/policy/policy_ui.cc b/chrome/browser/ui/webui/policy/policy_ui.cc
index c0d66c20..4223cf5 100644
--- a/chrome/browser/ui/webui/policy/policy_ui.cc
+++ b/chrome/browser/ui/webui/policy/policy_ui.cc
@@ -25,7 +25,6 @@
 #include "components/policy/core/common/features.h"
 #include "components/policy/core/common/management/management_service.h"
 #include "components/policy/core/common/policy_loader_common.h"
-#include "components/policy/core/common/policy_logger.h"
 #include "components/policy/core/common/policy_pref_names.h"
 #include "components/policy/core/common/policy_utils.h"
 #include "components/policy/policy_constants.h"
@@ -159,16 +158,10 @@
   };
   source->AddLocalizedStrings(kPolicyLogsStrings);
 
-  source->AddBoolean(
-      "loggingEnabled",
-      policy::PolicyLogger::GetInstance()->IsPolicyLoggingEnabled());
+  std::string variations_json_value;
+  base::JSONWriter::Write(GetVersionInfo(), &variations_json_value);
 
-  if (policy::PolicyLogger::GetInstance()->IsPolicyLoggingEnabled()) {
-    std::string variations_json_value;
-    base::JSONWriter::Write(GetVersionInfo(), &variations_json_value);
-
-    source->AddString("versionInfo", variations_json_value);
-  }
+  source->AddString("versionInfo", variations_json_value);
 
   source->AddResourcePath("logs/", IDR_POLICY_LOGS_POLICY_LOGS_HTML);
   source->AddResourcePath("logs", IDR_POLICY_LOGS_POLICY_LOGS_HTML);