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

Issue 7193031: Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. (Closed)

Created:
9 years, 5 months ago by qsr (NOT THE RIGHT qsr)
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana
Visibility:
Public.

Description

Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92844

Patch Set 1 #

Total comments: 5

Patch Set 2 : Refactor ShowSyncSetup #

Total comments: 11

Patch Set 3 : Follow review. #

Patch Set 4 : Upload after merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -40 lines) Patch
M chrome/browser/sync/profile_sync_service.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 1 chunk +5 lines, -26 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow_handler.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler.h View 1 2 3 1 chunk +14 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
qsr (NOT THE RIGHT qsr)
9 years, 5 months ago (2011-07-04 08:10:07 UTC) #1
Andrew T Wilson (Slow)
Overall looks good except for one change I'd suggest - what do you think? http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/profile_sync_service.cc ...
9 years, 5 months ago (2011-07-07 17:44:23 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode858 chrome/browser/sync/profile_sync_service.cc:858: void ProfileSyncService::ShowSyncSetup(SyncSetupWizard::State state) { On 2011/07/07 17:44:23, Andrew T ...
9 years, 5 months ago (2011-07-07 17:49:47 UTC) #3
Andrew T Wilson (Slow)
So you think all the calls to ShowSyncSetup() should instead just be calling wizard_.Step()?
9 years, 5 months ago (2011-07-07 17:51:02 UTC) #4
tim (not reviewing)
Right On Thu, Jul 7, 2011 at 10:51 AM, <atwilson@chromium.org> wrote: > So you think ...
9 years, 5 months ago (2011-07-07 17:54:56 UTC) #5
qsr (NOT THE RIGHT qsr)
http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/sync_setup_wizard.cc File chrome/browser/sync/sync_setup_wizard.cc (right): http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/sync_setup_wizard.cc#newcode89 chrome/browser/sync/sync_setup_wizard.cc:89: flow->ShowSyncSetup(); > this just looks like a sub-case of ...
9 years, 5 months ago (2011-07-08 08:51:42 UTC) #6
tim (not reviewing)
On 2011/07/08 08:51:42, qsr wrote: > http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/sync_setup_wizard.cc > File chrome/browser/sync/sync_setup_wizard.cc (right): > > http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/sync_setup_wizard.cc#newcode89 > ...
9 years, 5 months ago (2011-07-08 16:23:15 UTC) #7
tim (not reviewing)
On 2011/07/08 16:23:15, timsteele wrote: > On 2011/07/08 08:51:42, qsr wrote: > > > http://codereview.chromium.org/7193031/diff/1/chrome/browser/sync/sync_setup_wizard.cc ...
9 years, 5 months ago (2011-07-08 16:25:02 UTC) #8
qsr (NOT THE RIGHT qsr)
> > > Andrew's proposal could work as well. Did you get a chance to ...
9 years, 5 months ago (2011-07-08 16:28:45 UTC) #9
qsr (NOT THE RIGHT qsr)
Can you take another look. I did as Drew suggested. I found out that if ...
9 years, 5 months ago (2011-07-11 06:34:35 UTC) #10
tim (not reviewing)
Adding jhawkins + csilv to help address my question below. http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/sync_setup_wizard.cc File chrome/browser/sync/sync_setup_wizard.cc (right): http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/sync_setup_wizard.cc#newcode95 ...
9 years, 5 months ago (2011-07-11 14:44:25 UTC) #11
Andrew Wilson
Yeah, I'm not sure that either Tim or I completely understand the motivation behind that ...
9 years, 5 months ago (2011-07-11 16:58:41 UTC) #12
James Hawkins
On 2011/07/11 16:58:41, Andrew Wilson wrote: > Yeah, I'm not sure that either Tim or ...
9 years, 5 months ago (2011-07-11 17:12:03 UTC) #13
Andrew T Wilson (Slow)
On 2011/07/11 17:12:03, James Hawkins wrote: > If you have a solution for "whatever magic" ...
9 years, 5 months ago (2011-07-11 17:17:51 UTC) #14
csilv
On 2011/07/11 17:17:51, Andrew T Wilson wrote: > On 2011/07/11 17:12:03, James Hawkins wrote: > ...
9 years, 5 months ago (2011-07-11 17:42:14 UTC) #15
Andrew T Wilson (Slow)
Getting pretty close - thanks for hanging in there :) http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/profile_sync_service.cc#newcode829 ...
9 years, 5 months ago (2011-07-11 18:12:51 UTC) #16
James Hawkins
http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/sync_setup_flow.h File chrome/browser/sync/sync_setup_flow.h (right): http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/sync_setup_flow.h#newcode75 chrome/browser/sync/sync_setup_flow.h:75: // Show the sync setup tab. On 2011/07/11 18:12:51, ...
9 years, 5 months ago (2011-07-11 18:15:38 UTC) #17
Andrew T Wilson (Slow)
For various reasons, I'd like to take this discussion offline. Shoot me a chat and ...
9 years, 5 months ago (2011-07-11 18:46:26 UTC) #18
qsr (NOT THE RIGHT qsr)
http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/sync_setup_wizard.cc File chrome/browser/sync/sync_setup_wizard.cc (right): http://codereview.chromium.org/7193031/diff/9002/chrome/browser/sync/sync_setup_wizard.cc#newcode90 chrome/browser/sync/sync_setup_wizard.cc:90: return; On 2011/07/11 18:12:51, Andrew T Wilson wrote: > ...
9 years, 5 months ago (2011-07-12 07:01:37 UTC) #19
Andrew T Wilson (Slow)
LGTM. Sorry for the delay - I didn't realize that you had made the other ...
9 years, 5 months ago (2011-07-13 16:51:08 UTC) #20
tim (not reviewing)
On 2011/07/13 16:51:08, Andrew T Wilson wrote: > LGTM. Sorry for the delay - I ...
9 years, 5 months ago (2011-07-20 03:55:11 UTC) #21
qsr (NOT THE RIGHT qsr)
9 years, 5 months ago (2011-07-20 07:37:57 UTC) #22
>
> I just noticed that you left in all the calls to Step.  So now in some
> places we
> call wizard_.Step, and in some cases we call wizard_.ShowSyncSetup.  I have
> absolutely no idea which case is which.
> We should only have one of these, right?


 Not really, at least not without another round of refactoring, and this one
might not be trivial. ShowSyncSetup doesn't do anything if a flow is already
defined, while Step will always do something, creating the flow if needed.
The 2 use case are different. And I do not know an easy way to tell them
apart right now. I can add an option to Step instead of having
the ShowSyncSetup method if you want.

-- 
        Benjamin

Powered by Google App Engine
This is Rietveld 408576698