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

Issue 523132: Allow an empty list of page actions. (Closed)

Created:
10 years, 11 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
Reviewers:
Finnur
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Allow an empty list of page actions. BUG=26050 TEST=Updated existing unit tests ExtensionTest.InitFromValue*, manual testing on Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35802 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35903

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments #

Total comments: 4

Patch Set 3 : Address rev comments, rebase to trunk. #

Patch Set 4 : Rebase onto trunk #

Patch Set 5 : Test that rebase did not break anything #

Patch Set 6 : Allow an empty list of page actions.... #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -17 lines) Patch
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 3 chunks +17 lines, -14 lines 0 comments Download
M chrome/common/extensions/extension_constants.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Sam Kerner (Chrome)
10 years, 11 months ago (2010-01-07 18:00:19 UTC) #1
Finnur
LGTM (with nits) http://codereview.chromium.org/523132/diff/1/2 File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/523132/diff/1/2#newcode1081 chrome/common/extensions/extension.cc:1081: DictionaryValue* page_action_value = NULL; nit: This ...
10 years, 11 months ago (2010-01-07 18:17:03 UTC) #2
Sam Kerner (Chrome)
http://codereview.chromium.org/523132/diff/1/2 File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/523132/diff/1/2#newcode1081 chrome/common/extensions/extension.cc:1081: DictionaryValue* page_action_value = NULL; On 2010/01/07 18:17:03, Finnur wrote: ...
10 years, 11 months ago (2010-01-07 20:05:03 UTC) #3
Finnur
Still LG. Two nits: http://codereview.chromium.org/523132/diff/3001/4001 File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/523132/diff/3001/4001#newcode1101 chrome/common/extensions/extension.cc:1101: } else { // list_value_length ...
10 years, 11 months ago (2010-01-07 20:10:01 UTC) #4
Sam Kerner (Chrome)
http://codereview.chromium.org/523132/diff/3001/4001 File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/523132/diff/3001/4001#newcode1101 chrome/common/extensions/extension.cc:1101: } else { // list_value_length > 1u . On ...
10 years, 11 months ago (2010-01-07 20:21:20 UTC) #5
Finnur
10 years, 11 months ago (2010-01-11 00:21:09 UTC) #6
Patch set 7 with mem leak fix LGTM.

On 2010/01/07 20:21:20, Sam Kerner (Chrome) wrote:
> http://codereview.chromium.org/523132/diff/3001/4001
> File chrome/common/extensions/extension.cc (right):
> 
> http://codereview.chromium.org/523132/diff/3001/4001#newcode1101
> chrome/common/extensions/extension.cc:1101: } else {  // list_value_length >
1u
> .
> On 2010/01/07 20:10:01, Finnur wrote:
> > nit: Why the extra space in front of the period?
> 
> I was following the convention to add a space between numbers and periods, to
> avoid confusion with a decimal point.  The 'u' makes this a corner case. 
Done.
> 
> http://codereview.chromium.org/523132/diff/3001/4002
> File chrome/common/extensions/extension_constants.cc (right):
> 
> http://codereview.chromium.org/523132/diff/3001/4002#newcode125
> chrome/common/extensions/extension_constants.cc:125: 
> On 2010/01/07 20:10:01, Finnur wrote:
> > nit: Why add line breaks?
> 
> Merge artifact.  Removed.

Powered by Google App Engine
This is Rietveld 408576698