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

Issue 667833004: Fix extension command service to check if user has modified key before overwrite on update. (Closed)

Created:
6 years, 2 months ago by aegabriel
Modified:
6 years, 1 month ago
Reviewers:
Mike Wittman, Finnur
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix extension command service to check if user has modified key before overwrite on update. Worked for all other keys except for the media keys where CanAutoAssign would ALWAYS return true even if key was modified by user. Now no commands should be overwritten on update if they have been changed by a user. BUG=421482 R=finnur@chromium.org Committed: https://crrev.com/26df1b6ef65f42d581c2d8d5e0e2807d67602f2b Cr-Commit-Position: refs/heads/master@{#301309}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Code cleanup #

Total comments: 4

Patch Set 3 : More code cleanup #

Patch Set 4 : Fix presubmit problems. #

Patch Set 5 : Sync with master #

Patch Set 6 : Fix conflicts with rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -5 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_apitest.cc View 1 2 3 2 chunks +59 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/keybinding/update/mk_v1/background.js View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/update/mk_v1/manifest.json View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/keybinding/update/mk_v2/background.js View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/update/mk_v2/manifest.json View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
aegabriel
6 years, 2 months ago (2014-10-22 04:15:56 UTC) #1
Finnur
Adding Mike as FYI, in case he has any objections. To me this looks fine, ...
6 years, 2 months ago (2014-10-22 09:43:03 UTC) #3
Mike Wittman
Looks good other than Finnur's comments and the test data change. Sorry for the breakage! ...
6 years, 2 months ago (2014-10-22 18:15:38 UTC) #4
Finnur
Wait? What? ... You are apologizing for the "breakage"? Really? LOL. :) You improved on ...
6 years, 2 months ago (2014-10-22 21:02:41 UTC) #5
aegabriel
On 2014/10/22 21:02:41, Finnur wrote: > Wait? What? ... You are apologizing for the "breakage"? ...
6 years, 2 months ago (2014-10-23 02:51:39 UTC) #6
Finnur
Just a few more nits. https://codereview.chromium.org/667833004/diff/20001/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/667833004/diff/20001/chrome/browser/extensions/api/commands/command_service.cc#newcode558 chrome/browser/extensions/api/commands/command_service.cc:558: // Media Keys are ...
6 years, 2 months ago (2014-10-23 09:09:54 UTC) #7
aegabriel
Added the style fixes and cleanup in.
6 years, 2 months ago (2014-10-23 14:43:42 UTC) #8
Finnur
LGTM
6 years, 2 months ago (2014-10-23 15:08:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667833004/40001
6 years, 2 months ago (2014-10-24 16:05:08 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/19869)
6 years, 2 months ago (2014-10-24 16:10:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667833004/60001
6 years, 1 month ago (2014-10-27 01:21:52 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/73741) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/16389) linux_chromium_chromeos_rel ...
6 years, 1 month ago (2014-10-27 01:24:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667833004/80001
6 years, 1 month ago (2014-10-27 01:43:45 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/73743) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/16390) win8_chromium_rel ...
6 years, 1 month ago (2014-10-27 01:46:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667833004/100001
6 years, 1 month ago (2014-10-27 01:56:06 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-10-27 02:50:06 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 02:50:51 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/26df1b6ef65f42d581c2d8d5e0e2807d67602f2b
Cr-Commit-Position: refs/heads/master@{#301309}

Powered by Google App Engine
This is Rietveld 408576698