Commit b40ebc2a authored by Abhijeet Singh's avatar Abhijeet Singh Committed by Commit Bot

Clean up unused feature flags in Assistant

This CL cleans up the disabled feature flags for Assistant not currently
in use, specifically |kEnableClearCutLog|.

This CL also cleans up some code missed in chromium:2207860 which was a
related CL that did a similar clean-up of the launched feature flags
instead.

Bug: b:156993255
Test: Does not change behavior
Change-Id: I3624e3fd15934c3b5bf0dcae43fc58c49d92281d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210324Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Abhijeet Singh <siabhijeet@google.com>
Cr-Commit-Position: refs/heads/master@{#770825}
parent 4c820a94
...@@ -78,9 +78,6 @@ const base::Feature kAssistantTimersV2{"AssistantTimersV2", ...@@ -78,9 +78,6 @@ const base::Feature kAssistantTimersV2{"AssistantTimersV2",
const base::Feature kAssistantWaitScheduling{"AssistantWaitScheduling", const base::Feature kAssistantWaitScheduling{"AssistantWaitScheduling",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kEnableClearCutLog{"EnableClearCutLog",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kEnableDspHotword{"EnableDspHotword", const base::Feature kEnableDspHotword{"EnableDspHotword",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
...@@ -131,10 +128,6 @@ bool IsAudioEraserEnabled() { ...@@ -131,10 +128,6 @@ bool IsAudioEraserEnabled() {
return base::FeatureList::IsEnabled(kAssistantAudioEraser); return base::FeatureList::IsEnabled(kAssistantAudioEraser);
} }
bool IsClearCutLogEnabled() {
return base::FeatureList::IsEnabled(kEnableClearCutLog);
}
bool IsConversationStartersV2Enabled() { bool IsConversationStartersV2Enabled() {
return base::FeatureList::IsEnabled(kAssistantConversationStartersV2); return base::FeatureList::IsEnabled(kAssistantConversationStartersV2);
} }
......
...@@ -71,10 +71,6 @@ extern const base::Feature kAssistantTimersV2; ...@@ -71,10 +71,6 @@ extern const base::Feature kAssistantTimersV2;
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC)
extern const base::Feature kAssistantWaitScheduling; extern const base::Feature kAssistantWaitScheduling;
// Enables clear cut logging.
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC)
extern const base::Feature kEnableClearCutLog;
// Enables DSP for hotword detection. // Enables DSP for hotword detection.
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC)
extern const base::Feature kEnableDspHotword; extern const base::Feature kEnableDspHotword;
...@@ -115,15 +111,11 @@ COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsAppSupportEnabled(); ...@@ -115,15 +111,11 @@ COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsAppSupportEnabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsAudioEraserEnabled(); COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsAudioEraserEnabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsClearCutLogEnabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC)
bool IsConversationStartersV2Enabled(); bool IsConversationStartersV2Enabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsDspHotwordEnabled(); COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsDspHotwordEnabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsFeedbackUiEnabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC)
bool IsLauncherChipIntegrationEnabled(); bool IsLauncherChipIntegrationEnabled();
...@@ -158,8 +150,6 @@ COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsVoiceMatchDisabled(); ...@@ -158,8 +150,6 @@ COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsVoiceMatchDisabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsWaitSchedulingEnabled(); COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsWaitSchedulingEnabled();
COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) bool IsWarmerWelcomeEnabled();
} // namespace features } // namespace features
} // namespace assistant } // namespace assistant
} // namespace chromeos } // namespace chromeos
......
...@@ -63,7 +63,6 @@ using CommunicationErrorType = AssistantManagerService::CommunicationErrorType; ...@@ -63,7 +63,6 @@ using CommunicationErrorType = AssistantManagerService::CommunicationErrorType;
constexpr char kScopeAuthGcm[] = "https://www.googleapis.com/auth/gcm"; constexpr char kScopeAuthGcm[] = "https://www.googleapis.com/auth/gcm";
constexpr char kScopeAssistant[] = constexpr char kScopeAssistant[] =
"https://www.googleapis.com/auth/assistant-sdk-prototype"; "https://www.googleapis.com/auth/assistant-sdk-prototype";
constexpr char kScopeClearCutLog[] = "https://www.googleapis.com/auth/cclog";
constexpr char kScopeGeller[] = "https://www.googleapis.com/auth/webhistory"; constexpr char kScopeGeller[] = "https://www.googleapis.com/auth/webhistory";
constexpr base::TimeDelta kMinTokenRefreshDelay = constexpr base::TimeDelta kMinTokenRefreshDelay =
...@@ -468,9 +467,6 @@ void Service::RequestAccessToken() { ...@@ -468,9 +467,6 @@ void Service::RequestAccessToken() {
signin::ScopeSet scopes; signin::ScopeSet scopes;
scopes.insert(kScopeAssistant); scopes.insert(kScopeAssistant);
scopes.insert(kScopeAuthGcm); scopes.insert(kScopeAuthGcm);
if (features::IsClearCutLogEnabled())
scopes.insert(kScopeClearCutLog);
if (features::IsOnDeviceAssistantEnabled()) if (features::IsOnDeviceAssistantEnabled())
scopes.insert(kScopeGeller); scopes.insert(kScopeGeller);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment