[DIPS] move dips_features to //content/public
As a first step to moving the entire dips project to //content, move the feature flag to //content.
Bug: 1399545
Change-Id: I1a1b7e69c6fa90b6bdaee6956d0ef9ab43287c85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4770460
Reviewed-by: Joshua Hood <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Commit-Queue: Patricia Alfonso <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1184377}
diff --git a/chrome/browser/devtools/protocol/system_info_handler.cc b/chrome/browser/devtools/protocol/system_info_handler.cc
index 8788073..bcbb1449 100644
--- a/chrome/browser/devtools/protocol/system_info_handler.cc
+++ b/chrome/browser/devtools/protocol/system_info_handler.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/devtools/protocol/system_info_handler.h"
-#include "chrome/browser/dips/dips_features.h"
-#include "chrome/browser/dips/dips_utils.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/content_features.h"
+#include "content/public/common/dips_utils.h"
SystemInfoHandler::SystemInfoHandler(protocol::UberDispatcher* dispatcher) {
protocol::SystemInfo::Dispatcher::wire(dispatcher, this);
@@ -19,10 +19,10 @@
const std::string& in_featureState,
bool* featureEnabled) {
if (in_featureState == "DIPS") {
- *featureEnabled =
- base::FeatureList::IsEnabled(dips::kFeature) &&
- dips::kDeletionEnabled.Get() &&
- (dips::kTriggeringAction.Get() != DIPSTriggeringAction::kNone);
+ *featureEnabled = base::FeatureList::IsEnabled(features::kDIPS) &&
+ features::kDIPSDeletionEnabled.Get() &&
+ (features::kDIPSTriggeringAction.Get() !=
+ content::DIPSTriggeringAction::kNone);
return protocol::Response::Success();
}