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

Issue 2861034: Decomped registration logic into its own class. (Closed)

Created:
10 years, 5 months ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ben+cc_chromium.org, tim (not reviewing), idana, pam+watch_chromium.org, Paweł Hajdan Jr., ncarter (slow)
Visibility:
Public.

Description

Decomped registration logic into its own class. Handle registration events properly. BUG=34647 TEST=new unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51230

Patch Set 1 : . #

Total comments: 15

Patch Set 2 : Addressed comments #

Total comments: 4

Patch Set 3 : Addressed nick's and ghc's comments #

Patch Set 4 : Added dep #

Patch Set 5 : synced to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -43 lines) Patch
M chrome/browser/sync/notifier/chrome_invalidation_client.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/notifier/chrome_invalidation_client.cc View 1 7 chunks +15 lines, -39 lines 0 comments Download
M chrome/browser/sync/notifier/invalidation_util.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/notifier/invalidation_util.cc View 1 chunk +18 lines, -2 lines 0 comments Download
A chrome/browser/sync/notifier/registration_manager.h View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/registration_manager.cc View 1 2 1 chunk +132 lines, -0 lines 0 comments Download
A chrome/browser/sync/notifier/registration_manager_unittest.cc View 1 1 chunk +287 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
akalin
+nick and +ghc for review
10 years, 5 months ago (2010-06-29 07:15:43 UTC) #1
Paweł Hajdan Jr.
Drive-by with minor test comments. http://codereview.chromium.org/2861034/diff/28001/29007 File chrome/browser/sync/notifier/registration_manager_unittest.cc (right): http://codereview.chromium.org/2861034/diff/28001/29007#newcode7 chrome/browser/sync/notifier/registration_manager_unittest.cc:7: #include <deque> nit: Please ...
10 years, 5 months ago (2010-06-29 12:52:15 UTC) #2
ncarter (slow)
http://codereview.chromium.org/2861034/diff/28001/29006 File chrome/browser/sync/notifier/registration_manager.h (right): http://codereview.chromium.org/2861034/diff/28001/29006#newcode57 chrome/browser/sync/notifier/registration_manager.h:57: REGISTERED, What do these states mean? What's the difference ...
10 years, 5 months ago (2010-06-29 15:09:41 UTC) #3
akalin
Note that this patch depends on http://codereview.chromium.org/2861034/show . Addressed all comments, please take another look. ...
10 years, 5 months ago (2010-06-29 18:12:32 UTC) #4
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM.
10 years, 5 months ago (2010-06-29 18:16:55 UTC) #5
ncarter (slow)
http://codereview.chromium.org/2861034/diff/28001/29009 File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/2861034/diff/28001/29009#newcode1842 chrome/chrome_tests.gypi:1842: 'target_name': 'sync_notifier_unit_tests', On 2010/06/29 18:12:32, akalin wrote: > On ...
10 years, 5 months ago (2010-06-29 20:08:55 UTC) #6
ghc
http://codereview.chromium.org/2861034/diff/10002/36005 File chrome/browser/sync/notifier/registration_manager.cc (right): http://codereview.chromium.org/2861034/diff/10002/36005#newcode112 chrome/browser/sync/notifier/registration_manager.cc:112: if (result.status().code() != invalidation::Status::SUCCESS) { do you leave it ...
10 years, 5 months ago (2010-06-29 20:36:15 UTC) #7
akalin
On 2010/06/29 20:08:55, ncarter wrote: > http://codereview.chromium.org/2861034/diff/28001/29009 > File chrome/chrome_tests.gypi (right): > > If you ...
10 years, 5 months ago (2010-06-29 21:37:50 UTC) #8
akalin
Addressed all comments, please take another look. http://codereview.chromium.org/2861034/diff/10002/36005 File chrome/browser/sync/notifier/registration_manager.cc (right): http://codereview.chromium.org/2861034/diff/10002/36005#newcode112 chrome/browser/sync/notifier/registration_manager.cc:112: if (result.status().code() ...
10 years, 5 months ago (2010-06-29 21:38:19 UTC) #9
ghc
LGTM
10 years, 5 months ago (2010-06-29 21:39:11 UTC) #10
ncarter (slow)
10 years, 5 months ago (2010-06-30 04:08:18 UTC) #11
On 2010/06/29 21:37:50, akalin wrote:
> On 2010/06/29 20:08:55, ncarter wrote:
> > http://codereview.chromium.org/2861034/diff/28001/29009
> > File chrome/chrome_tests.gypi (right):
> > 
> > If you take this approach to its logical conclusion, then each _unittest.cc
> file
> > would wind up in its own executable.  The downside to that situation is more
> > targets to keep in mind when trying to run manually, and a bigger list of
> > executables to run in the various trybot/buildbot/valgrind configs.  I'm not
> > saying that there's not a place for sharding the unit tests, but I am
arguing
> > that this instance looks oversharded, and we should avoid incurring the
> > overhead.
> > 
> > Which dependencies are you eager to avoid?  You depend on 'sync' here, which
> in
> > my mind means that you pull in most of what 'sync_unit_tests' would, even if
> it
> > gets discarded at the link step.
> 
> sync_unit_tests depends on WebCore (?) at least on Mac, and most of chrome.  I
> filed a bug ( http://code.google.com/p/chromium/issues/detail?id=47910 ) to
> track and fix this.  (And assigned to Tim; if he's mad at you, this is
probably
> why. :) )
> 
> Although yeah, I think I'm convinced that it's oversharded in this case. 
moved
> it to sync_unit_tests.

LGTM.  Thanks for the compromise and thanks for filing the bug.  There is no
reason on earth that sync_unit_tests should depend on WebCore, and that's the
issue we should focus on.

Powered by Google App Engine
This is Rietveld 408576698