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

Issue 394223002: Disable tab syncing when history saving is disabled. (Closed)

Created:
6 years, 5 months ago by Joao da Silva
Modified:
6 years, 3 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Disable tab syncing when history saving is disabled. The history page shows the current tabs of synced devices. This works by having the client upload its open tabs to the server, which feeds this data into the history backend. If history saving is disabled by policy then the opens tabs should not be uploaded to the server. This also prevents them from showing up in the history page. BUG=292976, 372108, 393051 Committed: https://crrev.com/e3fcbab8a44333d2f10c5dd73cce9b879e44bd2b Cr-Commit-Position: refs/heads/master@{#292123}

Patch Set 1 #

Patch Set 2 : added test #

Patch Set 3 : update policy description #

Patch Set 4 : rebase #

Patch Set 5 : fixes #

Total comments: 17

Patch Set 6 : Addressed comments #

Patch Set 7 : Fixed remaining comments; #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -25 lines) Patch
M chrome/browser/sync/glue/typed_url_data_type_controller.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.cc View 1 2 3 4 5 6 2 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller.h View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller.cc View 1 2 3 4 5 6 5 chunks +32 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 2 3 4 2 chunks +9 lines, -5 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Joao da Silva
PTAL: @tim: git history says you're a good reviewer for session_data_type_controller.cc, can you have a ...
6 years, 5 months ago (2014-07-21 08:42:28 UTC) #1
Joao da Silva
+atwilson
6 years, 4 months ago (2014-08-20 07:25:55 UTC) #2
Joao da Silva
Just finished manual verification that this works as intended, incl. when the policy changes at ...
6 years, 4 months ago (2014-08-21 12:46:14 UTC) #3
Andrew T Wilson (Slow)
+zea Mostly LG, although i'd like to understand what the right thing is to do ...
6 years, 4 months ago (2014-08-21 14:10:38 UTC) #4
Joao da Silva
Addressed Drew's comments. Nicolas, can you have a look at Drew's comments? https://codereview.chromium.org/394223002/diff/80001/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc ...
6 years, 3 months ago (2014-08-26 16:06:52 UTC) #5
Nicolas Zea
zea@chromium.org changed reviewers: + zea@chromium.org
6 years, 3 months ago (2014-08-26 17:59:30 UTC) #6
Nicolas Zea
https://codereview.chromium.org/394223002/diff/80001/chrome/browser/sync/glue/non_frontend_data_type_controller.cc File chrome/browser/sync/glue/non_frontend_data_type_controller.cc (left): https://codereview.chromium.org/394223002/diff/80001/chrome/browser/sync/glue/non_frontend_data_type_controller.cc#oldcode295 chrome/browser/sync/glue/non_frontend_data_type_controller.cc:295: DCHECK(IsOnBackendThread()); On 2014/08/21 14:10:37, Andrew T Wilson wrote: > ...
6 years, 3 months ago (2014-08-26 17:59:30 UTC) #7
Joao da Silva
Thanks for the pointers. Everything still works as expected after implementing ReadyForStart() instead of LoadModels(). ...
6 years, 3 months ago (2014-08-26 18:43:03 UTC) #8
Nicolas Zea
sync LGTM And yeah, I suspect RecordUnrecoverableError is being called incorrectly. I've filed 407764 to ...
6 years, 3 months ago (2014-08-26 19:37:50 UTC) #9
Andrew T Wilson (Slow)
lgtm
6 years, 3 months ago (2014-08-27 08:06:31 UTC) #10
Joao da Silva
The CQ bit was checked by joaodasilva@chromium.org
6 years, 3 months ago (2014-08-27 08:20:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/394223002/120001
6 years, 3 months ago (2014-08-27 08:20:46 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (120001) as dafb8f27eabb86be48f11b87ed7d648bbc64d6c5
6 years, 3 months ago (2014-08-27 09:07:13 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:50:39 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e3fcbab8a44333d2f10c5dd73cce9b879e44bd2b
Cr-Commit-Position: refs/heads/master@{#292123}

Powered by Google App Engine
This is Rietveld 408576698