Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from chromium:main #112

Merged
merged 70 commits into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
e5fb2f4
[CrOS Bluetooth] Only provide battery info for connected devices.
Dec 14, 2021
8689d05
[Frameworks roll] Roll to 416360021 piper revision
Dec 14, 2021
405d9e4
Remove NonSFI mode part 6.
Dec 14, 2021
6c48bb0
[MerchantTrust] Encapsulate omnibox store icon with a circle background
Dec 14, 2021
dc8d035
Remove unnecessary no-op OnTouch overrides in TestObserver impls.
Dec 14, 2021
b104f14
Extend expiry of LoadingPredictor.* histograms.
Dec 14, 2021
0935739
Revert "[Passwords] Fix assertion failure when opening password setti…
pkotwicz Dec 14, 2021
198d333
Updater: Pass the path to ksadmin's parent dir, not ksadmin itself.
Dec 14, 2021
f6ac399
Tag TODOs with focused crbug at root-cause places re: IMF globals.
Dec 14, 2021
52c3734
[src] Move mac-arm64-on-arm64-rel to CI (step 2)
Dec 14, 2021
d418870
Suppress flaky Pixel_WebGPUImportVideoFrame test on Intel
shrekshao Dec 14, 2021
2a32553
Remove NonSFI mode part 7.
Dec 14, 2021
a506c43
Put VEA and VEAClient mojo interfaces on the same pipe
Djuffin Dec 14, 2021
400421c
android: check for zero address earlier
pasko Dec 14, 2021
6a59524
Add flag that enables multiple overlays
Dec 14, 2021
76ea576
Make shell surface overlay properly own the widget delegate.
Dec 14, 2021
4478c52
setup builder win11-rel-swarming in dev
Dec 14, 2021
f4aec63
sessions: only create session restore for regular profiles
Dec 14, 2021
ec5eaba
Modify references to Origin in LockManager to use BucketId instead
hoodjoshua Dec 14, 2021
126a5fd
personalization: load local images if any when no internet connection
Dec 14, 2021
f6c0cf5
Roll Fuchsia Internal SDK from 7.20211214.1.1 to 7.20211214.2.1
Dec 14, 2021
006f0e3
shimless: Handle abortRma success state
greatgoogleymoogley Dec 14, 2021
c638654
Welcome: Refactor BUILD.gn so that each source file is listed once.
freshp86 Dec 14, 2021
273b8e8
Remove ’account’ from ’remove from this device’
Arthur-Milchior Dec 14, 2021
7bf81a5
[Autofill] Fixed Autofill.CreditCard.SeamlessFills.
schwering Dec 14, 2021
d5f05ad
Add container window for ChromeDataExchangeDelegateTest.
Dec 14, 2021
7956e7d
[CrOS Bluetooth] Add set device nickname metric
Dec 14, 2021
2e48d06
[cast_core] Replace chromecast:app_core target with chromecast:app.
ivigen Dec 14, 2021
7b3ea5e
Roll Chrome Mac PGO Profile
Dec 14, 2021
5ddcbf6
Setting width constraints to toolbar and content for settings
Dec 14, 2021
85c7f7f
Roll Chrome Win32 PGO Profile
Dec 14, 2021
3c3b74c
Make message center bubble tests parameterized to test with new Notif…
Dec 14, 2021
f5b44b8
Roll Perfetto Trace Processor Mac from 1357bd132733 to f9abf9948a18
Dec 14, 2021
d5fbde9
Roll Skia from f74c7893fc17 to 68e240d9cdb3 (1 revision)
Dec 14, 2021
4bdfa33
[cast_core] Remove CastRuntimeService::GetInstance API.
ivigen Dec 14, 2021
2222012
Re-disable Metal WebGL on 'Mac FYI ASAN (Intel)'
y-novikov Dec 14, 2021
c9342d4
Add a leveldb-based EntityMetadataProvider
Dec 14, 2021
2d3725b
Revert "Reland "Reland "Mac: enable ThinLTO (without unit splitting)"""
speednoisemovement Dec 14, 2021
83a4b7d
Extend login detection metrics
Dec 14, 2021
66417af
[Clank CBCM] Branch SafeSearchPolicyTest off of PolicyTest
Dec 14, 2021
c62a33b
Make build/android presubmit checked with pylint-2.7
yoshisatoyanagisawa Dec 14, 2021
e67e19e
Remove testonly=enable_weston_test
mitoshima Dec 14, 2021
140afc4
Use relevant realm for self.reportError and self.structuredClone.
jeremyroman Dec 14, 2021
17d9569
Fix web-exposed First Input Delay computation for desktop.
hbsong235 Dec 14, 2021
dabdc01
Fix use-after-move in mojo::core::BrokerHost
Dec 14, 2021
e639dfe
[cast_core] Consolidate browser and renderer targets.
ivigen Dec 14, 2021
6f8240b
Fix memory leak in ArcAppPerformanceTracingTest and helper.
Dec 14, 2021
e84eaa6
Make bookmark shortcut appear in custom tab
Dec 14, 2021
39236db
[QueryTiles] Update QueryTiles to use experiment config
Dec 14, 2021
0e27adb
Disable failed test in perfetto_unittests on android-12-x64-fyi-rel
Dec 14, 2021
2ae121a
[cast_core] Refactor CastRuntimeService and build to encpasulate bran…
ivigen Dec 14, 2021
22d6c88
Reland "desk_templates: Animation for exiting overview while template…
Dec 14, 2021
7c6d8d6
[Messages] Add fieldtrial entry for PWA install message
Dec 14, 2021
d9392eb
[PriceTracking] Set lifetime for price drop notifications
Dec 14, 2021
53e8bb6
Dictation: Swap in new bubble UI
akihiroota87 Dec 14, 2021
9a8d3bb
[DragDrop] Reduce context menu header image size
fwy423 Dec 14, 2021
61ec653
Evict Fallback Surface During Failed Commit
Dec 14, 2021
869acc3
[LR] Fix error handling during asset fetch
guillaumejenkins Dec 14, 2021
ea2d4ff
Reland "Implement accessibility for expandable view"
Dec 14, 2021
e66fcc5
[CrOS Bluetooth] Add powered metric
Dec 14, 2021
7a18689
Add PredefinedColorSpace enums for HDR canvas
ccameron-chromium Dec 14, 2021
8181f81
Extend expiry of file handling API about:flags entries.
Dec 14, 2021
bff0948
[DesktopSharingHub] Clean up feature flags
Dec 14, 2021
ca36a77
Roll Fuchsia SDK from 7.20211214.1.1 to 7.20211214.2.1
Dec 14, 2021
d48003f
Fix memory leak in SmbFsShareTest.
Dec 14, 2021
cc8901b
Speculative fix for crash in AshNotificationView::UpdateAppIconView
Dec 14, 2021
8f6aab4
[Harbuzz] Add missing hb-ot-color to sources list
tanderson-google Dec 14, 2021
9d0ca76
[FedCM] Support AbortSignal to abort a get operation
cbiesinger Dec 14, 2021
d2750d5
[fuchsia] Make components_browsertests pass
Steelskin Dec 14, 2021
9312848
Roll vulkan-deps from c03890076954 to 2ec74208b030 (1 revision)
Dec 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling Skia
# and whatever else without interference from each other.
'skia_revision': 'f74c7893fc17685e34089af7c81446e23cfab4ad',
'skia_revision': '68e240d9cdb3f09fc0c9de834aaef04aa3b3f579',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling V8
# and whatever else without interference from each other.
Expand Down Expand Up @@ -1603,7 +1603,7 @@ deps = {
'src/third_party/usrsctp/usrsctplib':
Var('chromium_git') + '/external/github.com/sctplab/usrsctp' + '@' + '62d7d0c928c9a040dce96aa2f16c00e7e67d59cb',

'src/third_party/vulkan-deps': '{chromium_git}/vulkan-deps@c038900769543d5883b1fab698c007831be50f48',
'src/third_party/vulkan-deps': '{chromium_git}/vulkan-deps@2ec74208b0306eff87b9ebc097d8dfbb20e76fc2',

'src/third_party/vulkan_memory_allocator':
Var('chromium_git') + '/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git' + '@' + '5e49f57a6e71a026a54eb42e366de09a4142d24e',
Expand Down
1 change: 1 addition & 0 deletions ash/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3127,6 +3127,7 @@ static_library("test_support") {
"//chromeos/system",
"//chromeos/ui/frame",
"//components/account_id",
"//components/exo/wayland:weston_test_stub",
"//components/prefs:test_support",
"//components/user_manager:user_manager",
"//components/viz/test:test_support",
Expand Down
3 changes: 2 additions & 1 deletion ash/system/message_center/ash_notification_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,8 @@ void AshNotificationView::UpdateAppIconView() {

// Grouped child notification use notification's icon for the app icon view,
// so we don't need further update here.
if (is_grouped_child_view_ && !notification->icon().IsEmpty())
if (!notification ||
(is_grouped_child_view_ && !notification->icon().IsEmpty()))
return;

SkColor accent_color = notification->accent_color().value_or(
Expand Down
196 changes: 75 additions & 121 deletions ash/system/message_center/unified_message_center_bubble_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,78 @@ class UnifiedMessageCenterBubbleTest : public AshTestBase {
int id_ = 0;
};

TEST_F(UnifiedMessageCenterBubbleTest, PositionedAboveSystemTray) {
// TODO(crbug.com/1279984): Make this test a parameterized test. Currently fails
// when NotificationRefresh enabled.
TEST_F(UnifiedMessageCenterBubbleTest, HandleAccelerators) {
auto id = AddWebNotification();
WaitForAnimation();

// Open and focus message center.
DoAltShiftN();
WaitForAnimation();
EXPECT_TRUE(GetMessageCenterBubble()->IsMessageCenterVisible());
EXPECT_EQ(
1u,
message_center::MessageCenter::Get()->GetVisibleNotifications().size());

views::Widget* quick_settings_widget =
GetSystemTrayBubble()->GetBubbleWidget();
views::Widget* message_center_widget =
GetMessageCenterBubble()->GetBubbleWidget();
EXPECT_FALSE(quick_settings_widget->IsActive());
EXPECT_TRUE(message_center_widget->IsActive());

RemoveAllNotifications();
WaitForAnimation();
EXPECT_EQ(
0u,
message_center::MessageCenter::Get()->GetVisibleNotifications().size());
EXPECT_FALSE(quick_settings_widget->IsActive());
EXPECT_TRUE(message_center_widget->IsActive());
EXPECT_EQ(GetFirstMessageCenterFocusable(),
message_center_widget->GetFocusManager()->GetFocusedView());

// Press Esc to close system tray.
DoEsc();
WaitForAnimation();
EXPECT_EQ(nullptr,
GetPrimaryUnifiedSystemTray()->GetFocusManager()->GetFocusedView());
}

// Tests with NotificationsRefresh enabled and disabled.
class ParameterizedMessageCenterBubbleTest
: public UnifiedMessageCenterBubbleTest,
public testing::WithParamInterface<bool> {
public:
ParameterizedMessageCenterBubbleTest() = default;

ParameterizedMessageCenterBubbleTest(
const ParameterizedMessageCenterBubbleTest&) = delete;
ParameterizedMessageCenterBubbleTest& operator=(
const ParameterizedMessageCenterBubbleTest&) = delete;

~ParameterizedMessageCenterBubbleTest() override = default;

// AshTestBase:
void SetUp() override {
scoped_feature_list_ = std::make_unique<base::test::ScopedFeatureList>();
scoped_feature_list_->InitWithFeatureState(features::kNotificationsRefresh,
IsNotificationsRefreshEnabled());

UnifiedMessageCenterBubbleTest::SetUp();
}

bool IsNotificationsRefreshEnabled() const { return GetParam(); }

private:
std::unique_ptr<base::test::ScopedFeatureList> scoped_feature_list_;
};

INSTANTIATE_TEST_SUITE_P(All,
ParameterizedMessageCenterBubbleTest,
testing::Bool() /* IsNotificationsRefreshEnabled() */);

TEST_P(ParameterizedMessageCenterBubbleTest, PositionedAboveSystemTray) {
const int total_notifications = 5;
GetPrimaryUnifiedSystemTray()->ShowBubble();
AddNotification();
Expand Down Expand Up @@ -185,7 +256,7 @@ TEST_F(UnifiedMessageCenterBubbleTest, PositionedAboveSystemTray) {
}
}

TEST_F(UnifiedMessageCenterBubbleTest, FocusCycle) {
TEST_P(ParameterizedMessageCenterBubbleTest, FocusCycle) {
GetPrimaryUnifiedSystemTray()->ShowBubble();
AddNotification();
AddNotification();
Expand Down Expand Up @@ -233,91 +304,7 @@ TEST_F(UnifiedMessageCenterBubbleTest, FocusCycle) {
GetFirstQuickSettingsFocusable());
}

TEST_F(UnifiedMessageCenterBubbleTest, HandleAccelerators) {
auto id = AddWebNotification();
WaitForAnimation();

// Open and focus message center.
DoAltShiftN();
WaitForAnimation();
EXPECT_TRUE(GetMessageCenterBubble()->IsMessageCenterVisible());
EXPECT_EQ(
1u,
message_center::MessageCenter::Get()->GetVisibleNotifications().size());

views::Widget* quick_settings_widget =
GetSystemTrayBubble()->GetBubbleWidget();
views::Widget* message_center_widget =
GetMessageCenterBubble()->GetBubbleWidget();
EXPECT_FALSE(quick_settings_widget->IsActive());
EXPECT_TRUE(message_center_widget->IsActive());

RemoveAllNotifications();
WaitForAnimation();
EXPECT_EQ(
0u,
message_center::MessageCenter::Get()->GetVisibleNotifications().size());
EXPECT_FALSE(quick_settings_widget->IsActive());
EXPECT_TRUE(message_center_widget->IsActive());
EXPECT_EQ(GetFirstMessageCenterFocusable(),
message_center_widget->GetFocusManager()->GetFocusedView());

// Press Esc to close system tray.
DoEsc();
WaitForAnimation();
EXPECT_EQ(nullptr,
GetPrimaryUnifiedSystemTray()->GetFocusManager()->GetFocusedView());
}

TEST_F(UnifiedMessageCenterBubbleTest, ReverseFocusCycle) {
GetPrimaryUnifiedSystemTray()->ShowBubble();
AddNotification();
AddNotification();

views::Widget* quick_settings_widget =
GetSystemTrayBubble()->GetBubbleWidget();
views::Widget* message_center_widget =
GetMessageCenterBubble()->GetBubbleWidget();

// First shift tab should focus the last element in the quick settings bubble.
DoShiftTab();
EXPECT_TRUE(quick_settings_widget->IsActive());
EXPECT_FALSE(message_center_widget->IsActive());
EXPECT_EQ(quick_settings_widget->GetFocusManager()->GetFocusedView(),
GetLastQuickSettingsFocusable());

// Keep shift tabbing until we reach the first focusable element in the quick
// settings bubble.
while (quick_settings_widget->GetFocusManager()->GetFocusedView() !=
GetFirstQuickSettingsFocusable()) {
DoShiftTab();
}

// Shift tab at the first element in the quick settings bubble should move
// focus to the last element in the message center.
DoShiftTab();
EXPECT_TRUE(message_center_widget->IsActive());
EXPECT_FALSE(quick_settings_widget->IsActive());
EXPECT_EQ(message_center_widget->GetFocusManager()->GetFocusedView(),
GetLastMessageCenterFocusable());

// Keep shift tabbing until we reach the first focusable element in the
// message center bubble.
while (message_center_widget->GetFocusManager()->GetFocusedView() !=
GetFirstMessageCenterFocusable()) {
DoShiftTab();
}

// Shift tab at the first element in the message center bubble should move
// focus to the last element in the quick settings bubble.
DoShiftTab();
EXPECT_TRUE(quick_settings_widget->IsActive());
EXPECT_FALSE(message_center_widget->IsActive());
EXPECT_EQ(quick_settings_widget->GetFocusManager()->GetFocusedView(),
GetLastQuickSettingsFocusable());
}

TEST_F(UnifiedMessageCenterBubbleTest, CollapseState) {
TEST_P(ParameterizedMessageCenterBubbleTest, CollapseState) {
AddNotification();
AddNotification();

Expand Down Expand Up @@ -368,7 +355,7 @@ TEST_F(UnifiedMessageCenterBubbleTest, CollapseState) {
EXPECT_FALSE(IsMessageCenterCollapsed());
}

TEST_F(UnifiedMessageCenterBubbleTest, FocusCycleWithNoNotifications) {
TEST_P(ParameterizedMessageCenterBubbleTest, FocusCycleWithNoNotifications) {
GetPrimaryUnifiedSystemTray()->ShowBubble();

views::Widget* quick_settings_widget =
Expand Down Expand Up @@ -399,39 +386,6 @@ TEST_F(UnifiedMessageCenterBubbleTest, FocusCycleWithNoNotifications) {
GetFirstQuickSettingsFocusable());
}

// Tests with NotificationsRefresh enabled and disabled.
class ParameterizedMessageCenterBubbleTest
: public UnifiedMessageCenterBubbleTest,
public testing::WithParamInterface<bool> {
public:
ParameterizedMessageCenterBubbleTest() = default;

ParameterizedMessageCenterBubbleTest(
const ParameterizedMessageCenterBubbleTest&) = delete;
ParameterizedMessageCenterBubbleTest& operator=(
const ParameterizedMessageCenterBubbleTest&) = delete;

~ParameterizedMessageCenterBubbleTest() override = default;

// AshTestBase:
void SetUp() override {
scoped_feature_list_ = std::make_unique<base::test::ScopedFeatureList>();
scoped_feature_list_->InitWithFeatureState(features::kNotificationsRefresh,
IsNotificationsRefreshEnabled());

UnifiedMessageCenterBubbleTest::SetUp();
}

bool IsNotificationsRefreshEnabled() const { return GetParam(); }

private:
std::unique_ptr<base::test::ScopedFeatureList> scoped_feature_list_;
};

INSTANTIATE_TEST_SUITE_P(All,
ParameterizedMessageCenterBubbleTest,
testing::Bool() /* IsNotificationsRefreshEnabled() */);

TEST_P(ParameterizedMessageCenterBubbleTest, BubbleBounds) {
// Set display size where the message center is not collapsed.
UpdateDisplay("0+0-1280×1024");
Expand Down
1 change: 1 addition & 0 deletions ash/system/time/calendar_event_list_item_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ CalendarEventListItemView::CalendarEventListItemView(
time_range_(new views::Label()) {
SetLayoutManager(std::make_unique<views::FillLayout>());
GetViewAccessibility().OverrideName(GetClassName());
SetFocusBehavior(FocusBehavior::ALWAYS);

summary_->SetText(base::UTF8ToUTF16(event.summary()));
SetUpLabel(summary_);
Expand Down
1 change: 1 addition & 0 deletions ash/system/time/calendar_event_list_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class ASH_EXPORT CalendarEventListView

private:
friend class CalendarViewEventListViewTest;
friend class CalendarViewTest;

// Updates the event list entries.
void UpdateListItems();
Expand Down
Loading