| 
 | 
 | 
 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2548413002:
    Fix sync for reading list  (Closed)
    
  
    Issue 
            2548413002:
    Fix sync for reading list  (Closed) 
  | DescriptionFix sync for reading list
Reading list was not added to the possible selected options for sync.
This CL fixes it and add an histogram for the reading list sync option.
BUG=669393
Committed: https://crrev.com/62073c7aeb03e4893f72f2646ea391ac2bc155c2
Cr-Commit-Position: refs/heads/master@{#438793}
   Patch Set 1 #
      Total comments: 2
      
     Patch Set 2 : Fix sync for reading list #Patch Set 3 : Fix tests #Patch Set 4 : Fix tests #Patch Set 5 : Add preprocessor information #
      Total comments: 2
      
     Patch Set 6 : Move histogram #
      Total comments: 2
      
     Patch Set 7 : Update DEPS #
 Messages
    Total messages: 51 (31 generated)
     
 gambard@chromium.org changed reviewers: + maxbogue@chromium.org, olivierrobin@chromium.org, rkaplow@chromium.org 
 PTAL. 
 The CQ bit was checked by gambard@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 gambard@chromium.org changed reviewers: + pavely@chromium.org 
 +pavely@ as the person having done most of the reading list reviews. 
 lgtm 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) 
 lgtm 
 https://codereview.chromium.org/2548413002/diff/1/components/sync/syncable/mo... File components/sync/syncable/model_type.cc (right): https://codereview.chromium.org/2548413002/diff/1/components/sync/syncable/mo... components/sync/syncable/model_type.cc:156: const char* kUserSelectableDataTypeNames[] = { Please add reading list name in this list as well. Value should correspond to the one used in javascript: https://cs.chromium.org/chromium/src/chrome/test/data/webui/settings/people_p... 
 The CQ bit was checked by gambard@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 Thanks, pavely@ a question about the javascript part of it. PTAL. https://codereview.chromium.org/2548413002/diff/1/components/sync/syncable/mo... File components/sync/syncable/model_type.cc (right): https://codereview.chromium.org/2548413002/diff/1/components/sync/syncable/mo... components/sync/syncable/model_type.cc:156: const char* kUserSelectableDataTypeNames[] = { On 2016/12/05 18:48:42, pavely wrote: > Please add reading list name in this list as well. Value should correspond to > the one used in javascript: > https://cs.chromium.org/chromium/src/chrome/test/data/webui/settings/people_p... Thanks, I have added it here but I am not sure I need to add it to the javascript: this options is available only for iOS. WDYT? 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) 
 On 2016/12/06 10:15:42, gambard wrote: > Thanks, pavely@ a question about the javascript part of it. > PTAL. > > https://codereview.chromium.org/2548413002/diff/1/components/sync/syncable/mo... > File components/sync/syncable/model_type.cc (right): > > https://codereview.chromium.org/2548413002/diff/1/components/sync/syncable/mo... > components/sync/syncable/model_type.cc:156: const char* > kUserSelectableDataTypeNames[] = { > On 2016/12/05 18:48:42, pavely wrote: > > Please add reading list name in this list as well. Value should correspond to > > the one used in javascript: > > > https://cs.chromium.org/chromium/src/chrome/test/data/webui/settings/people_p... > > Thanks, I have added it here but I am not sure I need to add it to the > javascript: this options is available only for iOS. > WDYT? I looked at how UI is implemented. It seems datatypes are not listed in javascript, but controls for them are present in HTML. The way HTML is written, controls will be hidden for types that are not registered (https://cs.chromium.org/chromium/src/chrome/browser/resources/settings/people...). I'm not sure if you need to add type to html. Owners of UI would advise better (dbeam@ for example). I personally don't think you need to change html/js. You just need to adjust SyncSetupHandlerTest and PeopleHandlerTest. 
 The CQ bit was checked by gambard@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) 
 gambard@chromium.org changed reviewers: + dbeam@chromium.org 
 dbeam@: PTAL. The reading list option for sync will only be available for iOS. I have added the field in the GetConfiguration method of the tests only, I don't know if I need to do some changes to html/js. I also don't understand why the tests are failing as they are passing locally (mac build). 
 gambard@chromium.org changed reviewers: + stevenjb@chromium.org 
 +stevenjb for webui related question. PTAL 
 On 2016/12/12 17:09:04, gambard wrote: > +stevenjb for webui related question. > PTAL I don't know what we do for Settings in iOS, but I'm pretty sure you don't need to change any WebUI. 
 The CQ bit was checked by gambard@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 On 2016/12/12 17:34:17, stevenjb wrote: > On 2016/12/12 17:09:04, gambard wrote: > > +stevenjb for webui related question. > > PTAL > > I don't know what we do for Settings in iOS, but I'm pretty sure you don't need > to change any WebUI. Thanks for your answer, the iOS part is done. PTAL at the webui _unittest changes. If you think it is possible to do it without any changes to webui, tell me how. 
 Description was changed from ========== Fix sync for reading list Reading list was not added to the possible selected options for sync. This CL fixes it and add an histogram for the reading list sync option. BUG=669393 ========== to ========== Fix sync for reading list Reading list was not added to the possible selected options for sync. This CL fixes it and add an histogram for the reading list sync option. BUG=669393 ========== 
 maxbogue@chromium.org changed reviewers: - maxbogue@chromium.org 
 On 2016/12/13 13:29:28, gambard wrote: > On 2016/12/12 17:34:17, stevenjb wrote: > > On 2016/12/12 17:09:04, gambard wrote: > > > +stevenjb for webui related question. > > > PTAL > > > > I don't know what we do for Settings in iOS, but I'm pretty sure you don't > need > > to change any WebUI. > > Thanks for your answer, the iOS part is done. > PTAL at the webui _unittest changes. > If you think it is possible to do it without any changes to webui, tell me how. OK, I see. Yeah, this change would break Settings UI as-is, please don't just make that change to people_handler_unittest.cc. It "fixes" the test without changing the WebUI which will probably break. Instead we should probably modify syncer::GetUserSelectableTypeNameMap() to not provide "readingListSynced" on non iOS platforms, or provide a separate method for desktop Settings UI to use. 
 The CQ bit was checked by gambard@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 Thanks. pavely@: PTAL as I have made some changes. stevenjb@: please check if this is OK for webui (should be) 
 lgtm 
 lgtm https://codereview.chromium.org/2548413002/diff/80001/components/sync/driver/... File components/sync/driver/user_selectable_sync_type.h (right): https://codereview.chromium.org/2548413002/diff/80001/components/sync/driver/... components/sync/driver/user_selectable_sync_type.h:34: READING_LIST = 11, Could you move this line after WIFI_CREDENTIAL. 
 LGTM one nit https://codereview.chromium.org/2548413002/diff/100001/components/sync/syncab... File components/sync/syncable/DEPS (right): https://codereview.chromium.org/2548413002/diff/100001/components/sync/syncab... components/sync/syncable/DEPS:2: "+components/reading_list/core/reading_list_enable_flags.h", stop at core 
 Thanks! https://codereview.chromium.org/2548413002/diff/80001/components/sync/driver/... File components/sync/driver/user_selectable_sync_type.h (right): https://codereview.chromium.org/2548413002/diff/80001/components/sync/driver/... components/sync/driver/user_selectable_sync_type.h:34: READING_LIST = 11, On 2016/12/15 01:40:25, pavely wrote: > Could you move this line after WIFI_CREDENTIAL. Done. https://codereview.chromium.org/2548413002/diff/100001/components/sync/syncab... File components/sync/syncable/DEPS (right): https://codereview.chromium.org/2548413002/diff/100001/components/sync/syncab... components/sync/syncable/DEPS:2: "+components/reading_list/core/reading_list_enable_flags.h", On 2016/12/15 08:14:10, Olivier Robin wrote: > stop at core Done. 
 The CQ bit was checked by gambard@chromium.org 
 The patchset sent to the CQ was uploaded after l-g-t-m from rkaplow@chromium.org, stevenjb@chromium.org, pavely@chromium.org, olivierrobin@chromium.org Link to the patchset: https://codereview.chromium.org/2548413002/#ps120001 (title: "Update DEPS") 
 CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1481789890876880,
"parent_rev": "ac4fdf5574bdadf5b3d6383f4c4efc1841a55c85", "commit_rev":
"49fa6044565e3020eca21e8e0537bf9f07ad94b2"}
 
            
              
                Message was sent while issue was closed.
              
            
             Description was changed from ========== Fix sync for reading list Reading list was not added to the possible selected options for sync. This CL fixes it and add an histogram for the reading list sync option. BUG=669393 ========== to ========== Fix sync for reading list Reading list was not added to the possible selected options for sync. This CL fixes it and add an histogram for the reading list sync option. BUG=669393 Review-Url: https://codereview.chromium.org/2548413002 ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             Committed patchset #7 (id:120001) 
 
            
              
                Message was sent while issue was closed.
              
            
             Description was changed from ========== Fix sync for reading list Reading list was not added to the possible selected options for sync. This CL fixes it and add an histogram for the reading list sync option. BUG=669393 Review-Url: https://codereview.chromium.org/2548413002 ========== to ========== Fix sync for reading list Reading list was not added to the possible selected options for sync. This CL fixes it and add an histogram for the reading list sync option. BUG=669393 Committed: https://crrev.com/62073c7aeb03e4893f72f2646ea391ac2bc155c2 Cr-Commit-Position: refs/heads/master@{#438793} ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             Patchset 7 (id:??) landed as https://crrev.com/62073c7aeb03e4893f72f2646ea391ac2bc155c2 Cr-Commit-Position: refs/heads/master@{#438793} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
