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

Issue 2041293002: Add heuristics to limit showing of new backspace UI bubble. (Closed)

Created:
4 years, 6 months ago by Peter Kasting
Modified:
4 years, 6 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add heuristics to limit showing of new backspace UI bubble. This restricts the bubble to showing 5 times, and only showing when users trigger backspace twice within three seconds (which likely indicates "hey, why isn't the browser going back"). The bubble is also immediately hidden (by fading out) if the user successfully navigates back or forward (by any means) while it's showing. BUG=610039, 615760 TEST=New "press alt-left to go back" UI should not appear when pressing backspace (to attempt to go back) unless backspace is pressed twice within three seconds. After the UI is shown 5 times, it should not appear again. TBR=phajdan.jr Committed: https://crrev.com/36aa72944195f579454c1d3abea5045219fd685a Cr-Commit-Position: refs/heads/master@{#399114}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix Mac compile #

Total comments: 17

Patch Set 3 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -49 lines) Patch
M chrome/browser/ui/browser_command_controller.cc View 1 2 1 chunk +12 lines, -10 lines 0 comments Download
M chrome/browser/ui/browser_view_prefs.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_window.h View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm View 1 2 1 chunk +32 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 2 chunks +38 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/new_back_shortcut_bubble.h View 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/new_back_shortcut_bubble.cc View 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/base/test_browser_window.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Peter Kasting
https://codereview.chromium.org/2041293002/diff/1/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (left): https://codereview.chromium.org/2041293002/diff/1/chrome/browser/ui/browser_command_controller.cc#oldcode328 chrome/browser/ui/browser_command_controller.cc:328: // FALL THROUGH I know you're super disappointed to ...
4 years, 6 months ago (2016-06-07 08:04:23 UTC) #3
Matt Giuca
And a minor nit on the CL description (sorry to bring this up again): please ...
4 years, 6 months ago (2016-06-08 01:29:04 UTC) #4
Peter Kasting
I rewrapped the rest of the description. I left the TEST= line unwrapped in case ...
4 years, 6 months ago (2016-06-09 19:49:31 UTC) #6
Matt Giuca
lgtm https://codereview.chromium.org/2041293002/diff/20001/chrome/browser/ui/browser_view_prefs.cc File chrome/browser/ui/browser_view_prefs.cc (right): https://codereview.chromium.org/2041293002/diff/20001/chrome/browser/ui/browser_view_prefs.cc#newcode33 chrome/browser/ui/browser_view_prefs.cc:33: void RegisterBrowserViewProfilePrefs( On 2016/06/09 19:49:31, Peter Kasting wrote: ...
4 years, 6 months ago (2016-06-10 01:07:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041293002/40001
4 years, 6 months ago (2016-06-10 02:03:43 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/198598)
4 years, 6 months ago (2016-06-10 02:12:22 UTC) #11
Peter Kasting
TBRing phajdan.jr for trivial changes in chrome/test/base/.
4 years, 6 months ago (2016-06-10 05:44:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041293002/40001
4 years, 6 months ago (2016-06-10 05:44:54 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-10 05:49:19 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 05:49:22 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 05:50:56 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/36aa72944195f579454c1d3abea5045219fd685a
Cr-Commit-Position: refs/heads/master@{#399114}

Powered by Google App Engine
This is Rietveld 408576698