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

Issue 11465016: Dedupe code in SetIdleInstallInfo(), FinishIdleInstallInfo() and OnExtensionInstalled(). (Closed)

Created:
8 years ago by awong
Modified:
8 years ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Dedupe code in SetIdleInstallInfo(), FinishIdleInstallInfo() and OnExtensionInstalled(). BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171956

Patch Set 1 #

Patch Set 2 : typo fix #

Patch Set 3 : merged #

Patch Set 4 : more typos #

Patch Set 5 : fix unittest. #

Total comments: 11

Patch Set 6 : resolve comments #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : simplify conditional logic. #

Patch Set 9 : make variables less similar looking. #

Patch Set 10 : fix logic bug and add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -97 lines) Patch
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 9 5 chunks +120 lines, -94 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
awong
Hi Marijn, Here's my attempt to merge all these bits. I've left some comments with ...
8 years ago (2012-12-07 01:13:23 UTC) #1
Marijn Kruisselbrink
https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc#newcode1694 chrome/browser/extensions/extension_prefs.cc:1694: // RESOLVE BEFORE COMMIT: Why did this used to ...
8 years ago (2012-12-07 17:29:48 UTC) #2
awong
https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc#newcode1694 chrome/browser/extensions/extension_prefs.cc:1694: // RESOLVE BEFORE COMMIT: Why did this used to ...
8 years ago (2012-12-07 22:02:25 UTC) #3
Marijn Kruisselbrink
https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc#newcode1694 chrome/browser/extensions/extension_prefs.cc:1694: // RESOLVE BEFORE COMMIT: Why did this used to ...
8 years ago (2012-12-07 22:15:09 UTC) #4
awong
PTAL https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11465016/diff/4004/chrome/browser/extensions/extension_prefs.cc#newcode2342 chrome/browser/extensions/extension_prefs.cc:2342: /* RESOLVE ME BEFORE COMMIT: This conditional seems ...
8 years ago (2012-12-07 22:56:52 UTC) #5
Marijn Kruisselbrink
lgtm https://codereview.chromium.org/11465016/diff/13004/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11465016/diff/13004/chrome/browser/extensions/extension_prefs.cc#newcode2336 chrome/browser/extensions/extension_prefs.cc:2336: initial_state = Extension::ENABLED_COMPONENT; The code only cares if ...
8 years ago (2012-12-07 22:59:53 UTC) #6
awong
one more look? https://codereview.chromium.org/11465016/diff/13004/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): https://codereview.chromium.org/11465016/diff/13004/chrome/browser/extensions/extension_prefs.cc#newcode2336 chrome/browser/extensions/extension_prefs.cc:2336: initial_state = Extension::ENABLED_COMPONENT; On 2012/12/07 22:59:53, ...
8 years ago (2012-12-07 23:06:53 UTC) #7
Marijn Kruisselbrink
On 2012/12/07 23:06:53, awong wrote: > one more look? still lgtm
8 years ago (2012-12-07 23:07:44 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years ago (2012-12-07 23:14:17 UTC) #9
awong
mpcomplete: Care to do OWNERS? On Fri, Dec 7, 2012 at 3:14 PM, <commit-bot@chromium.org> wrote: ...
8 years ago (2012-12-07 23:38:38 UTC) #10
Matt Perry
lgtm
8 years ago (2012-12-07 23:58:06 UTC) #11
awong
Found a small bug (pesky ! in conditional). Also added some function comments. Will commit ...
8 years ago (2012-12-08 02:00:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/11465016/2012
8 years ago (2012-12-08 02:00:56 UTC) #13
commit-bot: I haz the power
8 years ago (2012-12-08 07:05:57 UTC) #14
Message was sent while issue was closed.
Change committed as 171956

Powered by Google App Engine
This is Rietveld 408576698