Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc

Issue 2851543002: Update avatar button to MD (part 1) (Closed)
Patch Set: Merged ThemedAvatarButton and Win10NativeAvatarButton into the base AvatarButton class Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
index 34df889e4c21d70931874f1230933b16ccbcf23a..ea74a0cd5f49b8165999a334c8d6c3b35fc0b148 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
@@ -139,9 +139,9 @@ class ProfileChooserViewExtensionsTest : public ExtensionBrowserTest {
ProfileChooserView::close_on_deactivate_for_testing_ = false;
- ui::MouseEvent e(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(),
+ ui::MouseEvent e(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0);
- button->OnMouseReleased(e);
+ button->OnMousePressed(e);
base::RunLoop().RunUntilIdle();
EXPECT_TRUE(ProfileChooserView::IsShowing());
@@ -156,7 +156,7 @@ class ProfileChooserViewExtensionsTest : public ExtensionBrowserTest {
}
void ClickProfileChooserViewLockButton() {
- ui::MouseEvent e(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(),
+ ui::MouseEvent e(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
ui::EventTimeForNow(), 0, 0);
ProfileChooserView::profile_bubble_->ButtonPressed(
ProfileChooserView::profile_bubble_->lock_button_, e);

Powered by Google App Engine
This is Rietveld 408576698