Commit 7915d42d authored by calamity's avatar calamity Committed by Commit Bot

Revert "Enable Suggested Content by default."

This reverts commit be611a0e.

Reason for revert: Suspected of causing Linux ChromiumOS MSan failures
Example failure: https://ci.chromium.org/p/chromium/builders/ci/Linux%20ChromiumOS%20MSan%20Tests/20989

Original change's description:
> Enable Suggested Content by default.
>
> The Suggested Content toggle has been approved in
> https://bugs.chromium.org/p/chromium/issues/detail?id=990279#c148. This
> CL enables the feature by default, and updates tests that need to take
> this into account.
>
> Bug: 990279
> Change-Id: Icc2c8bdf72cff8734aa5941f3fbc2774b38e4c98
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462752
> Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
> Reviewed-by: Jia Meng <jiameng@chromium.org>
> Commit-Queue: Rachel Wong <wrong@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#818758}

TBR=xiyuan@chromium.org,jiameng@chromium.org,wrong@chromium.org

Change-Id: I242dae70abcb45a723c10302ead38929fe530e89
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 990279
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2486530Reviewed-by: default avatarcalamity <calamity@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818806}
parent 08c470fc
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "ash/app_list/views/apps_container_view.h" #include "ash/app_list/views/apps_container_view.h"
#include "ash/app_list/views/apps_grid_view.h" #include "ash/app_list/views/apps_grid_view.h"
#include "ash/app_list/views/contents_view.h" #include "ash/app_list/views/contents_view.h"
#include "ash/app_list/views/privacy_container_view.h"
#include "ash/app_list/views/search_result_container_view.h" #include "ash/app_list/views/search_result_container_view.h"
#include "ash/app_list/views/search_result_page_view.h" #include "ash/app_list/views/search_result_page_view.h"
#include "ash/app_list/views/search_result_tile_item_view.h" #include "ash/app_list/views/search_result_tile_item_view.h"
...@@ -138,20 +137,15 @@ class AppListAppLaunchedMetricTest : public AshTestBase { ...@@ -138,20 +137,15 @@ class AppListAppLaunchedMetricTest : public AshTestBase {
} }
GetAppListTestHelper()->WaitUntilIdle(); GetAppListTestHelper()->WaitUntilIdle();
// Mark the privacy notices as dismissed so that the tile items will be the
// first search container.
ContentsView* contents_view = Shell::Get()
->app_list_controller()
->presenter()
->GetView()
->app_list_main_view()
->contents_view();
Shell::Get()->app_list_controller()->MarkAssistantPrivacyInfoDismissed();
Shell::Get()->app_list_controller()->MarkSuggestedContentInfoDismissed();
contents_view->privacy_container_view()->Update();
SearchResultContainerView* search_result_container_view = SearchResultContainerView* search_result_container_view =
contents_view->search_results_page_view()->result_container_views()[0]; Shell::Get()
->app_list_controller()
->presenter()
->GetView()
->app_list_main_view()
->contents_view()
->search_results_page_view()
->result_container_views()[0];
// Request focus on the first tile item view. // Request focus on the first tile item view.
search_result_container_view->GetFirstResultView()->RequestFocus(); search_result_container_view->GetFirstResultView()->RequestFocus();
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "ash/app_list/views/apps_grid_view.h" #include "ash/app_list/views/apps_grid_view.h"
#include "ash/app_list/views/contents_view.h" #include "ash/app_list/views/contents_view.h"
#include "ash/app_list/views/expand_arrow_view.h" #include "ash/app_list/views/expand_arrow_view.h"
#include "ash/app_list/views/privacy_container_view.h"
#include "ash/app_list/views/search_box_view.h" #include "ash/app_list/views/search_box_view.h"
#include "ash/app_list/views/search_result_actions_view.h" #include "ash/app_list/views/search_result_actions_view.h"
#include "ash/app_list/views/search_result_base_view.h" #include "ash/app_list/views/search_result_base_view.h"
...@@ -468,16 +467,6 @@ TEST_F(AppListPresenterDelegateTest, ClickSearchBoxInTabletMode) { ...@@ -468,16 +467,6 @@ TEST_F(AppListPresenterDelegateTest, ClickSearchBoxInTabletMode) {
TEST_F(AppListPresenterDelegateTest, RemoveSuggestionShowsConfirmDialog) { TEST_F(AppListPresenterDelegateTest, RemoveSuggestionShowsConfirmDialog) {
ShowZeroStateSearchInHalfState(); ShowZeroStateSearchInHalfState();
// Mark the privacy notices as dismissed so that they do not interfere with
// the layout.
Shell::Get()->app_list_controller()->MarkAssistantPrivacyInfoDismissed();
Shell::Get()->app_list_controller()->MarkSuggestedContentInfoDismissed();
GetAppListView()
->app_list_main_view()
->contents_view()
->privacy_container_view()
->Update();
// Add a zero state suggestion results - the result that will be tested is in // Add a zero state suggestion results - the result that will be tested is in
// the second place. // the second place.
Shell::Get()->app_list_controller()->GetSearchModel()->results()->Add( Shell::Get()->app_list_controller()->GetSearchModel()->results()->Add(
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include "ash/wm/desks/desks_restore_util.h" #include "ash/wm/desks/desks_restore_util.h"
#include "ash/wm/gestures/wm_gesture_handler.h" #include "ash/wm/gestures/wm_gesture_handler.h"
#include "chromeos/components/quick_answers/public/cpp/quick_answers_prefs.h" #include "chromeos/components/quick_answers/public/cpp/quick_answers_prefs.h"
#include "chromeos/constants/chromeos_pref_names.h"
#include "chromeos/services/assistant/public/cpp/assistant_prefs.h" #include "chromeos/services/assistant/public/cpp/assistant_prefs.h"
#include "components/pref_registry/pref_registry_syncable.h" #include "components/pref_registry/pref_registry_syncable.h"
...@@ -83,9 +82,6 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry, bool for_test) { ...@@ -83,9 +82,6 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry, bool for_test) {
registry->RegisterBooleanPref( registry->RegisterBooleanPref(
prefs::kMouseReverseScroll, false, prefs::kMouseReverseScroll, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_OS_PRIORITY_PREF); user_prefs::PrefRegistrySyncable::SYNCABLE_OS_PRIORITY_PREF);
registry->RegisterBooleanPref(
chromeos::prefs::kSuggestedContentEnabled, true,
user_prefs::PrefRegistrySyncable::SYNCABLE_OS_PREF);
} }
} }
......
...@@ -35,9 +35,6 @@ suite('PrivacyPageTests', function() { ...@@ -35,9 +35,6 @@ suite('PrivacyPageTests', function() {
suggestedContentToggleEnabled: false, suggestedContentToggleEnabled: false,
}); });
privacyPage = document.createElement('os-settings-privacy-page');
document.body.appendChild(privacyPage);
Polymer.dom.flush(); Polymer.dom.flush();
assertEquals(null, privacyPage.$$('#suggested-content')); assertEquals(null, privacyPage.$$('#suggested-content'));
...@@ -134,4 +131,4 @@ suite('PrivacePageTest_OfficialBuild', function() { ...@@ -134,4 +131,4 @@ suite('PrivacePageTest_OfficialBuild', function() {
deepLinkElement, getDeepActiveElement(), deepLinkElement, getDeepActiveElement(),
'Send usage stats toggle should be focused for settingId=1103.'); 'Send usage stats toggle should be focused for settingId=1103.');
}); });
}); });
\ No newline at end of file
...@@ -592,7 +592,7 @@ const base::Feature kSplitSettingsSync{"SplitSettingsSync", ...@@ -592,7 +592,7 @@ const base::Feature kSplitSettingsSync{"SplitSettingsSync",
// Enables a settings UI toggle that controls Suggested Content status. Also // Enables a settings UI toggle that controls Suggested Content status. Also
// enables a corresponding notice in the Launcher about Suggested Content. // enables a corresponding notice in the Launcher about Suggested Content.
const base::Feature kSuggestedContentToggle{"SuggestedContentToggle", const base::Feature kSuggestedContentToggle{"SuggestedContentToggle",
base::FEATURE_ENABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
// Enables or disables using the system input engine for physical typing in // Enables or disables using the system input engine for physical typing in
// languages based on latin script. // languages based on latin script.
......
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