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

Unified Diff: chrome/browser/ui/views/location_bar/bubble_icon_view.cc

Issue 765043002: Bookmark pop-up doesn't open if Ctrl+D is set as keyboard shortcut for added extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit. Created 6 years 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/location_bar/bubble_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
index d74f32937b6aa3edd0a181bb149c653e97b45caf..01dcd52a53d6bea1c0bd785670e59732fd5b3dd8 100644
--- a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
@@ -49,8 +49,12 @@ void BubbleIconView::OnMouseReleased(const ui::MouseEvent& event) {
return;
}
- if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location()))
+ if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location()) &&
+ command_updater_) {
Finnur 2014/12/03 10:49:17 This cannot possibly be correct. A cursory glance
+ command_updater_->set_bookmark_icon_selected(true);
ExecuteCommand(EXECUTE_SOURCE_MOUSE);
+ command_updater_->set_bookmark_icon_selected(false);
+ }
}
bool BubbleIconView::OnKeyPressed(const ui::KeyEvent& event) {
« chrome/browser/ui/browser_commands.cc ('K') | « chrome/browser/ui/browser_commands.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698