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

Issue 10985008: sync: Add DeviceInfo protobuf and supporting code (Closed)

Created:
8 years, 3 months ago by rlarocque
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Visibility:
Public.

Description

sync: Add DeviceInfo protobuf and supporting code This commit introduces the DeviceInfo type and protobuf. It also introduces the DeviceInfo class, which provides an interface for the rest of the code to access the information stored within the DeviceInfo type. The DeviceInfo class takes over some functions that used to belong to the SessionModelAssociator. The ChangeProcessor that keeps this information up to date and exposes notifications of device info changes will be added in a future commit. At the time of this commit, this should all be mostly dead code. The server does not support this type yet, so we do not yet attempt to download or manipulate any actual DeviceInfo nodes. BUG=122825 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161496

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address some review comments #

Patch Set 3 : Rebase #

Patch Set 4 : Add chrome_version field; modify SyncUserAgent generation #

Total comments: 1

Patch Set 5 : Update proto_value_conversions.cc #

Total comments: 14

Patch Set 6 : Some review fixes #

Total comments: 2

Patch Set 7 : Rebase #

Patch Set 8 : Fixes #

Patch Set 9 : Fix compile errors #

Patch Set 10 : Add missing include #

Patch Set 11 : Another missing include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -207 lines) Patch
M chrome/browser/sync/glue/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/sync/glue/device_info.h View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +141 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/model_association_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -35 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 2 chunks +4 lines, -35 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs_unittest.cc View 5 chunks +14 lines, -21 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/user_selectable_sync_type.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/base_node.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 chunk +3 lines, -1 line 0 comments Download
M sync/internal_api/public/base_node.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/internal_api/public/write_node.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -48 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M sync/internal_api/write_node.cc View 1 chunk +7 lines, -0 lines 0 comments Download
A sync/protocol/device_info_specifics.proto View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
M sync/protocol/nigori_specifics.proto View 2 chunks +2 lines, -19 lines 0 comments Download
M sync/protocol/proto_enum_conversions.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sync/protocol/proto_enum_conversions.cc View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M sync/protocol/proto_value_conversions.h View 3 chunks +4 lines, -5 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M sync/protocol/proto_value_conversions_unittest.cc View 4 chunks +7 lines, -1 line 0 comments Download
M sync/protocol/session_specifics.proto View 1 2 3 1 chunk +1 line, -10 lines 0 comments Download
M sync/protocol/sync.proto View 2 chunks +7 lines, -5 lines 0 comments Download
M sync/protocol/sync_enums.proto View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M sync/protocol/sync_proto.gyp View 1 chunk +2 lines, -1 line 0 comments Download
M sync/syncable/model_type.cc View 10 chunks +26 lines, -0 lines 0 comments Download
M sync/util/data_type_histogram.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rlarocque
The big device info patch (http://codereview.chromium.org/10911073/) has been split into a few small patches and ...
8 years, 3 months ago (2012-09-24 23:33:30 UTC) #1
Nicolas Zea
http://codereview.chromium.org/10985008/diff/1/chrome/browser/sync/glue/DEPS File chrome/browser/sync/glue/DEPS (right): http://codereview.chromium.org/10985008/diff/1/chrome/browser/sync/glue/DEPS#newcode20 chrome/browser/sync/glue/DEPS:20: # TODO(123674): This shouldn't be needed. TODO(sync): crbug.com/123674 http://codereview.chromium.org/10985008/diff/1/chrome/browser/sync/glue/device_info.cc ...
8 years, 2 months ago (2012-09-26 01:50:59 UTC) #2
rlarocque
Updated. I rebased, but didn't see any conflicts from new OS_ANDROID #defines. Do you have ...
8 years, 2 months ago (2012-09-26 20:44:36 UTC) #3
rlarocque
Patch updated. I think this latest protobuf definition matches what we agreed on during Friday's ...
8 years, 2 months ago (2012-10-01 20:53:49 UTC) #4
Nicolas Zea
http://codereview.chromium.org/10985008/diff/18001/chrome/browser/sync/glue/device_info.cc File chrome/browser/sync/glue/device_info.cc (right): http://codereview.chromium.org/10985008/diff/18001/chrome/browser/sync/glue/device_info.cc#newcode16 chrome/browser/sync/glue/device_info.cc:16: sync_user_agent_("Unknown"), any reason these are different? (unset vs unknown) ...
8 years, 2 months ago (2012-10-01 21:24:29 UTC) #5
rlarocque
Fixed some issues. http://codereview.chromium.org/10985008/diff/18001/chrome/browser/sync/glue/device_info.cc File chrome/browser/sync/glue/device_info.cc (right): http://codereview.chromium.org/10985008/diff/18001/chrome/browser/sync/glue/device_info.cc#newcode16 chrome/browser/sync/glue/device_info.cc:16: sync_user_agent_("Unknown"), On 2012/10/01 21:24:30, nzea wrote: ...
8 years, 2 months ago (2012-10-01 22:24:12 UTC) #6
Nicolas Zea
LGTM http://codereview.chromium.org/10985008/diff/18001/chrome/browser/sync/glue/device_info.cc File chrome/browser/sync/glue/device_info.cc (right): http://codereview.chromium.org/10985008/diff/18001/chrome/browser/sync/glue/device_info.cc#newcode16 chrome/browser/sync/glue/device_info.cc:16: sync_user_agent_("Unknown"), On 2012/10/01 22:24:12, rlarocque wrote: > On ...
8 years, 2 months ago (2012-10-05 20:28:51 UTC) #7
rlarocque
Thanks, Nicolas! I've uploaded a new patch to address your last two comments. Raz, are ...
8 years, 2 months ago (2012-10-05 21:05:00 UTC) #8
Raz Mathias
Proto looks good. Go ahead and check it in, I think we can have a ...
8 years, 2 months ago (2012-10-08 15:49:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10985008/29001
8 years, 2 months ago (2012-10-08 18:42:50 UTC) #10
commit-bot: I haz the power
Presubmit check for 10985008-29001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-08 18:43:16 UTC) #11
rlarocque
+brettw for OWNERS review of chrome/chrome_browser.gypi.
8 years, 2 months ago (2012-10-08 19:21:43 UTC) #12
brettw
I only looked at the gypi. lgtm
8 years, 2 months ago (2012-10-08 21:51:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10985008/29001
8 years, 2 months ago (2012-10-08 23:10:09 UTC) #14
commit-bot: I haz the power
Retried try job too often for step(s) crypto_unittests, unit_tests, cacheinvalidation_unittests, jingle_unittests, ipc_tests, interactive_ui_tests, browser_tests, net_unittests, ...
8 years, 2 months ago (2012-10-08 23:28:42 UTC) #15
rlarocque
This fixes some compile issues on Android and undoes the modifications to DEPS. The DEPS ...
8 years, 2 months ago (2012-10-09 00:04:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10985008/38003
8 years, 2 months ago (2012-10-11 22:53:33 UTC) #17
commit-bot: I haz the power
8 years, 2 months ago (2012-10-12 04:01:41 UTC) #18
Change committed as 161496

Powered by Google App Engine
This is Rietveld 408576698