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

Issue 12965009: Remove the limit of number of commands per extension, but keep the limit of 4 shortcuts per extensi… (Closed)

Created:
7 years, 9 months ago by Finnur
Modified:
7 years, 9 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Remove the limit of number of commands per extension, but keep the limit of 4 commands *with shortcuts* per extension. To facilitate this, commands without shortcuts are now allowed. BUG=167419 TEST=Automated test covers this, but you can manually test by adding an extension with 5 commands, 4 of which specify shortcuts in the manifest and see that it works. Once you add the manifest shortcut to the fifth extension, it should fail to load. The user should not be bound by this limit when adding shortcuts through chrome://extensions. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190921

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -78 lines) Patch
M chrome/common/extensions/api/commands/commands_handler.cc View 1 2 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/commands/commands_manifest_unittest.cc View 1 2 2 chunks +6 lines, -13 lines 0 comments Download
M chrome/common/extensions/command.cc View 1 2 3 4 3 chunks +28 lines, -32 lines 0 comments Download
M chrome/common/extensions/command_unittest.cc View 1 2 3 4 3 chunks +19 lines, -16 lines 0 comments Download
M chrome/common/extensions/docs/templates/intros/commands.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/manifest_tests/command_many_but_shortcuts_under_limit.json View 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/manifest_tests/command_too_many.json View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Finnur
7 years, 9 months ago (2013-03-26 11:11:38 UTC) #1
Yoyo Zhou
LGTM with nits https://codereview.chromium.org/12965009/diff/11011/chrome/common/extensions/command.cc File chrome/common/extensions/command.cc (right): https://codereview.chromium.org/12965009/diff/11011/chrome/common/extensions/command.cc#newcode213 chrome/common/extensions/command.cc:213: extension_manifest_values::kPageActionCommandEvent && If you use values ...
7 years, 9 months ago (2013-03-27 00:44:46 UTC) #2
Finnur
https://codereview.chromium.org/12965009/diff/11011/chrome/common/extensions/command.cc File chrome/common/extensions/command.cc (right): https://codereview.chromium.org/12965009/diff/11011/chrome/common/extensions/command.cc#newcode213 chrome/common/extensions/command.cc:213: extension_manifest_values::kPageActionCommandEvent && Good point. https://codereview.chromium.org/12965009/diff/11011/chrome/common/extensions/command_unittest.cc File chrome/common/extensions/command_unittest.cc (right): https://codereview.chromium.org/12965009/diff/11011/chrome/common/extensions/command_unittest.cc#newcode44 ...
7 years, 9 months ago (2013-03-27 13:00:38 UTC) #3
Finnur
7 years, 9 months ago (2013-03-27 13:04:48 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r190921 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698