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

Issue 1992003002: Re-add backspace-goes-back as a default disabled finch trial (Closed)

Created:
4 years, 7 months ago by ojan
Modified:
4 years, 7 months ago
CC:
chromium-reviews, derat+watch_chromium.org, tfarina, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-add backspace-goes-back as a default disabled finch trial. This is just so that we have a kill switch in case this makes it to stable and there is then unexpected outcry. BUG=610039 Committed: https://crrev.com/c7e4899df2f7e590de44237b4a2fdfd978ec70df Cr-Commit-Position: refs/heads/master@{#395141}

Patch Set 1 #

Patch Set 2 : fix assert in test #

Total comments: 16

Patch Set 3 : address revieww comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -2 lines) Patch
M chrome/app/chrome_command_ids.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/app_mode/app_mode_utils.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/global_keyboard_shortcuts_mac.mm View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/global_keyboard_shortcuts_mac_unittest.mm View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/accelerator_table.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views_browsertest.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992003002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992003002/1
4 years, 7 months ago (2016-05-18 19:38:30 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992003002/20001
4 years, 7 months ago (2016-05-18 21:09:46 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/216057)
4 years, 7 months ago (2016-05-18 22:13:48 UTC) #8
ojan
I didn't get a finch ambassador for this, but I think it might not be ...
4 years, 7 months ago (2016-05-19 00:50:56 UTC) #10
Matt Giuca
drive-by https://codereview.chromium.org/1992003002/diff/20001/chrome/app/chrome_command_ids.h File chrome/app/chrome_command_ids.h (right): https://codereview.chromium.org/1992003002/diff/20001/chrome/app/chrome_command_ids.h#newcode36 chrome/app/chrome_command_ids.h:36: #define IDC_BACKSPACE_BACK 33010 Do these need to be ...
4 years, 7 months ago (2016-05-19 02:04:33 UTC) #11
Peter Kasting
LGTM except for one question https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/browser_command_controller.cc#newcode333 chrome/browser/ui/browser_command_controller.cc:333: break; Nit: Slightly shorter, ...
4 years, 7 months ago (2016-05-19 09:28:31 UTC) #12
Mark P
Use of base::FeatureList looks fine to me. I assume you tested this change using --enable-features=... ...
4 years, 7 months ago (2016-05-19 22:49:03 UTC) #13
ojan
On 2016/05/19 at 22:49:03, mpearson wrote: > Use of base::FeatureList looks fine to me. > ...
4 years, 7 months ago (2016-05-20 16:33:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992003002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992003002/40001
4 years, 7 months ago (2016-05-20 16:34:02 UTC) #17
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/187414)
4 years, 7 months ago (2016-05-20 16:40:22 UTC) #19
ojan
sky/avi can you both OWNERS LGTM. avi: for the .mm files sky: for chrome/app/chrome_command_ids.h and ...
4 years, 7 months ago (2016-05-20 18:31:24 UTC) #21
Avi (use Gerrit)
lgtm
4 years, 7 months ago (2016-05-20 18:33:41 UTC) #23
sky
LGTM
4 years, 7 months ago (2016-05-20 19:09:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992003002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992003002/40001
4 years, 7 months ago (2016-05-20 19:45:59 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-20 19:50:30 UTC) #27
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c7e4899df2f7e590de44237b4a2fdfd978ec70df Cr-Commit-Position: refs/heads/master@{#395141}
4 years, 7 months ago (2016-05-20 19:52:38 UTC) #29
Matt Giuca
https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/browser_command_controller.cc#newcode333 chrome/browser/ui/browser_command_controller.cc:333: break; On 2016/05/20 16:33:48, ojan wrote: > On 2016/05/19 ...
4 years, 7 months ago (2016-05-23 01:12:01 UTC) #31
Matt Giuca
https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/browser_command_controller.cc File chrome/browser/ui/browser_command_controller.cc (right): https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/browser_command_controller.cc#newcode333 chrome/browser/ui/browser_command_controller.cc:333: break; On 2016/05/23 01:12:01, Matt Giuca wrote: > On ...
4 years, 7 months ago (2016-05-23 01:15:40 UTC) #32
ojan
4 years, 7 months ago (2016-05-24 00:25:52 UTC) #33
Message was sent while issue was closed.
On 2016/05/23 at 01:15:40, mgiuca wrote:
>
https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/brows...
> File chrome/browser/ui/browser_command_controller.cc (right):
> 
>
https://codereview.chromium.org/1992003002/diff/20001/chrome/browser/ui/brows...
> chrome/browser/ui/browser_command_controller.cc:333: break;
> On 2016/05/23 01:12:01, Matt Giuca wrote:
> > On 2016/05/20 16:33:48, ojan wrote:
> > > On 2016/05/19 at 09:28:30, Peter Kasting wrote:
> > > > Nit: Slightly shorter, and abides by the comment about keeping the
command
> > > order exactly matching the function declaration order:
> > > > 
> > > >     case IDC_BACKSPACE_BACK:
> > > >       if (!base::FeatureList::IsEnabled(kBackspaceGoesBackFeature))
> > > >         break;
> > > >     case IDC_BACK:
> > > >       GoBack(browser_, disposition);
> > > >       break;
> > > > 
> > > > (& similar)
> > > 
> > > done
> > 
> > Um, this is kind of gross and I'm going to have to put it back the way it
was in
> > my follow-up CL (which adds an else clause)... I have never seen a
conditional
> > fall-through before.
> 
> Sorry, actually I can keep the conditional fall-through if it's desired. Seems
bad though. Will discuss on my follow-up CL
https://codereview.chromium.org/1983803002/

Heh. I agree FWIW. I find conditional fall through to be error prone and ugly,
but I didn't really feel like arguing about it given that I expect we'll delete
this code entirely in a few releases.

Powered by Google App Engine
This is Rietveld 408576698