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

Issue 9424009: Cleaning up Extension::InitFromValue() (Closed)

Created:
8 years, 10 months ago by Devlin
Modified:
8 years, 9 months ago
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Cleaning up Extension::InitFromValue() This reduces the size of the Extension::InitFromValue() function from 1009 lines of code to around 80 lines of code through the creation of helper functions. There are four main helper functions - LoadRequiredFeatures, LoadSharedFeatures,LoadAppFeatures, and LoadExtensionFeatures. BUG=104096 TEST=Run existing extension tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125823

Patch Set 1 #

Patch Set 2 : Updated for the most recent versions of chrome/common/extensions/extension.* #

Total comments: 26

Patch Set 3 : Requested changed made #

Total comments: 14

Patch Set 4 : Update for most recent tree; requested changes made #

Total comments: 3

Patch Set 5 : Final update with requested changes, latest versions of extension.* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1432 lines, -1252 lines) Patch
M chrome/common/extensions/extension.h View 1 2 3 4 9 chunks +76 lines, -31 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 17 chunks +1356 lines, -1221 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Devlin
Refactoring of Extension::InitFromValue(). As of 2/16, this passes trybots mac_rel, win_rel, and linux_rel. As always, ...
8 years, 10 months ago (2012-02-17 22:14:38 UTC) #1
Devlin
Latest version of the refactor of Extension::InitFromValue(). Any feedback is appreciated.
8 years, 9 months ago (2012-02-29 06:43:38 UTC) #2
Aaron Boodman
Yoyo, can you take this review? http://codereview.chromium.org/9424009/diff/5004/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9424009/diff/5004/chrome/common/extensions/extension.cc#newcode899 chrome/common/extensions/extension.cc:899: if (manifest_->HasKey(keys::kDescription) && ...
8 years, 9 months ago (2012-02-29 20:38:25 UTC) #3
Yoyo Zhou
http://codereview.chromium.org/9424009/diff/5004/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9424009/diff/5004/chrome/common/extensions/extension.cc#newcode908 chrome/common/extensions/extension.cc:908: !LoadMinimumChromeVersion(error)) Maybe call this CheckMinimumChromeVersion instead, since it's not ...
8 years, 9 months ago (2012-03-01 01:17:25 UTC) #4
Devlin
Next version is up, with all requested changes made. Thanks in advance. http://codereview.chromium.org/9424009/diff/5004/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc ...
8 years, 9 months ago (2012-03-02 17:31:04 UTC) #5
Yoyo Zhou
LGTM with a few more comments, some of which are cleaning up the existing code. ...
8 years, 9 months ago (2012-03-02 20:20:07 UTC) #6
Devlin
All requested changes have been included. https://chromiumcodereview.appspot.com/9424009/diff/17001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://chromiumcodereview.appspot.com/9424009/diff/17001/chrome/common/extensions/extension.cc#newcode975 chrome/common/extensions/extension.cc:975: bool Extension::LoadRequiredFeatures(string16* error) ...
8 years, 9 months ago (2012-03-07 04:18:54 UTC) #7
Aaron Boodman
LGTM http://codereview.chromium.org/9424009/diff/20001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9424009/diff/20001/chrome/common/extensions/extension.cc#newcode1333 chrome/common/extensions/extension.cc:1333: if (!LoadDescription(error) || So pretty. http://codereview.chromium.org/9424009/diff/20001/chrome/common/extensions/extension.cc#newcode1784 chrome/common/extensions/extension.cc:1784: bool ...
8 years, 9 months ago (2012-03-07 21:10:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/9424009/26001
8 years, 9 months ago (2012-03-09 05:38:53 UTC) #9
Devlin
http://codereview.chromium.org/9424009/diff/20001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9424009/diff/20001/chrome/common/extensions/extension.cc#newcode1784 chrome/common/extensions/extension.cc:1784: bool Extension::LoadBackgroundAllowJsAccess( On 2012/03/07 21:10:54, Aaron Boodman wrote: > ...
8 years, 9 months ago (2012-03-09 05:46:17 UTC) #10
commit-bot: I haz the power
Change committed as 125823
8 years, 9 months ago (2012-03-09 10:45:14 UTC) #11
Finnur
On 2012/03/09 10:45:14, I haz the power (commit-bot) wrote: > Change committed as 125823 Any ...
8 years, 9 months ago (2012-03-09 14:57:06 UTC) #12
Finnur
Anyway, joaodasilva is going to clobber the build to see if the error goes away. ...
8 years, 9 months ago (2012-03-09 15:08:01 UTC) #13
Devlin
8 years, 9 months ago (2012-03-09 20:54:50 UTC) #14
On 2012/03/09 15:08:01, Finnur wrote:
> Anyway, joaodasilva is going to clobber the build to see if the error goes
away.
> Check the main waterfall to see if there is still a failure before digging in.

It doesn't appear that this change caused the problem; it was running fine on
mac try-bots this morning when I came in, and the problem appears to be
resolved.  Thanks for the heads-up, though; I appreciate it :)

Powered by Google App Engine
This is Rietveld 408576698