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

Issue 10696107: sync: Track validity of about:sync fields (Closed)

Created:
8 years, 5 months ago by rlarocque
Modified:
8 years, 5 months ago
Reviewers:
csilv, sail, akalin
CC:
chromium-reviews, Raghu Simha, ncarter (slow), arv (Not doing code reviews), akalin, tim (not reviewing)
Visibility:
Public.

Description

sync: Track validity of about:sync fields This commit changes the way we initialize the fields which get exported to about:sync's about tab. The goal was to pre-declare all the data which would be exported in a complete snapshot, and to track which of these fields were actually set. Unset fields will have a default value and be specially highlighted on about:sync. This commit includes the changes necessary to perform this highlighting. Also in this commit are a few backend changes that are used to determine from sync_ui_util which fields are properly initialized and which fields have been unset by anything other than a default constructor. The signature for ProfileSyncService::QueryDetailedSyncStatus() has been modified to return an additional parameter indicating whether or not the returned status actually came from the backend. The SyncSesionSnapshot takes a different approach. The object is immutable and has two constructors. If it is constructed with the zero-argument constructor it is clearly uninitialized, and will remain so. This change adds a flag which is set or unset based on which constructor is used. Finally, the ConstructAboutInforation function and all its helpers have been moved out of sync_ui_util.cc and into their own file. BUG=134927 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147531

Patch Set 1 #

Patch Set 2 : Fix comment #

Patch Set 3 : Move code between files #

Total comments: 26

Patch Set 4 : Update #

Total comments: 1

Patch Set 5 : Rebase and style fix #

Patch Set 6 : Rebase #

Patch Set 7 : Add missing include? #

Patch Set 8 : Another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -452 lines) Patch
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/sync_internals/about.html View 3 chunks +12 lines, -5 lines 0 comments Download
A chrome/browser/sync/about_sync_util.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/sync/about_sync_util.cc View 1 2 3 4 1 chunk +397 lines, -0 lines 0 comments Download
A chrome/browser/sync/about_sync_util_unittest.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_global_error_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.h View 1 2 2 chunks +2 lines, -33 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 2 6 chunks +6 lines, -326 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_unittest.cc View 1 2 12 chunks +30 lines, -50 lines 0 comments Download
M chrome/browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 5 chunks +17 lines, -15 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
rlarocque
Here's the follow-up from http://codereview.chromium.org/10694013/. This diff is big and experimental so I didn't want ...
8 years, 5 months ago (2012-07-04 00:27:47 UTC) #1
rlarocque
By the way, this is still draft quality. It's not ready full review, I just ...
8 years, 5 months ago (2012-07-04 00:29:34 UTC) #2
akalin
sorry for late reply. this doesn't seem too big. I think it'll end up being ...
8 years, 5 months ago (2012-07-11 01:50:36 UTC) #3
rlarocque
On 2012/07/11 01:50:36, akalin wrote: > sorry for late reply. > > this doesn't seem ...
8 years, 5 months ago (2012-07-11 17:32:36 UTC) #4
rlarocque
Please review. I decided sync_ui_util::ConstructAboutInformation() and all its helpers were big enough that they now ...
8 years, 5 months ago (2012-07-11 23:01:58 UTC) #5
akalin
http://codereview.chromium.org/10696107/diff/24/chrome/browser/sync/about_sync_util.cc File chrome/browser/sync/about_sync_util.cc (right): http://codereview.chromium.org/10696107/diff/24/chrome/browser/sync/about_sync_util.cc#newcode18 chrome/browser/sync/about_sync_util.cc:18: // Creates a 'section' for discplay on about:sync, consisting ...
8 years, 5 months ago (2012-07-12 00:01:55 UTC) #6
rlarocque
Updated. PTAL. http://codereview.chromium.org/10696107/diff/24/chrome/browser/sync/about_sync_util.cc File chrome/browser/sync/about_sync_util.cc (right): http://codereview.chromium.org/10696107/diff/24/chrome/browser/sync/about_sync_util.cc#newcode18 chrome/browser/sync/about_sync_util.cc:18: // Creates a 'section' for discplay on ...
8 years, 5 months ago (2012-07-12 01:02:20 UTC) #7
akalin
LGTM http://codereview.chromium.org/10696107/diff/25/chrome/browser/sync/about_sync_util.cc File chrome/browser/sync/about_sync_util.cc (right): http://codereview.chromium.org/10696107/diff/25/chrome/browser/sync/about_sync_util.cc#newcode155 chrome/browser/sync/about_sync_util.cc:155: ListValue* stats_list = new ListValue(); // 'details': A ...
8 years, 5 months ago (2012-07-12 22:51:19 UTC) #8
rlarocque
+csilv for webui OWNERS review.
8 years, 5 months ago (2012-07-13 18:41:55 UTC) #9
csilv
On 2012/07/13 18:41:55, rlarocque wrote: > +csilv for webui OWNERS review. webui/sync_internals_ui.cc owners LGTM
8 years, 5 months ago (2012-07-16 18:42:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10696107/27
8 years, 5 months ago (2012-07-16 18:43:32 UTC) #11
commit-bot: I haz the power
Try job failure for 10696107-27 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-16 19:08:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10696107/27
8 years, 5 months ago (2012-07-16 19:59:16 UTC) #13
commit-bot: I haz the power
Try job failure for 10696107-27 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-16 20:22:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10696107/26003
8 years, 5 months ago (2012-07-19 17:58:19 UTC) #15
commit-bot: I haz the power
Presubmit check for 10696107-26003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-19 17:58:34 UTC) #16
rlarocque
On 2012/07/19 17:58:34, I haz the power (commit-bot) wrote: > Presubmit check for 10696107-26003 failed ...
8 years, 5 months ago (2012-07-19 18:04:36 UTC) #17
rlarocque
+sail for chrome/browser/ui/cocoa OWNERS review.
8 years, 5 months ago (2012-07-19 19:08:50 UTC) #18
sail
cocoa/* LGTM!
8 years, 5 months ago (2012-07-19 19:13:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10696107/31001
8 years, 5 months ago (2012-07-19 19:35:23 UTC) #20
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 21:23:51 UTC) #21
Change committed as 147531

Powered by Google App Engine
This is Rietveld 408576698