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

Issue 1647833006: [Sync] Request dependency services in sync client with implicit access type. (Closed)

Created:
4 years, 10 months ago by pavely
Modified:
4 years, 10 months ago
Reviewers:
skym
CC:
chromium-reviews, tim+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Request dependency services in sync client with implicit access type. Currently all services that sync client depends on are requested with ServiceAccessType::EXPLICIT_ACCESS. Explicit access should be used for operations that are caused by user input. The typical behavior of service factories is when service is requested with implicit access in incognito mode service factory returns nullptr. Sync should not be syncing in incognito mode so this behavior should be acceptable. R=skym@chromium.org BUG=558320 Committed: https://crrev.com/ec1099f3a40ac978b0755bcfae7e622720d0e2cb Cr-Commit-Position: refs/heads/master@{#373041}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed Sky's feedback. #

Patch Set 3 : Add comment to remaining use of EXPLICIT_ACCESS #

Patch Set 4 : Revert to explicit access for HistoryService to fix integration tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M chrome/browser/sync/chrome_sync_client.cc View 1 2 3 5 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
pavely
4 years, 10 months ago (2016-01-28 19:47:52 UTC) #1
skym
Mostly just questions to help me understand what's going on. https://codereview.chromium.org/1647833006/diff/1/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/1647833006/diff/1/chrome/browser/sync/chrome_sync_client.cc#newcode148 ...
4 years, 10 months ago (2016-01-28 20:20:56 UTC) #2
pavely
https://codereview.chromium.org/1647833006/diff/1/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/1647833006/diff/1/chrome/browser/sync/chrome_sync_client.cc#newcode148 chrome/browser/sync/chrome_sync_client.cc:148: profile_, ServiceAccessType::EXPLICIT_ACCESS); On 2016/01/28 20:20:55, skym wrote: > What ...
4 years, 10 months ago (2016-01-28 22:30:53 UTC) #3
skym
LGTM https://codereview.chromium.org/1647833006/diff/1/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/1647833006/diff/1/chrome/browser/sync/chrome_sync_client.cc#newcode360 chrome/browser/sync/chrome_sync_client.cc:360: profile_, ServiceAccessType::EXPLICIT_ACCESS); On 2016/01/28 22:30:53, pavely wrote: > ...
4 years, 10 months ago (2016-01-28 22:41:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647833006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647833006/40001
4 years, 10 months ago (2016-01-28 23:17:59 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/160703)
4 years, 10 months ago (2016-01-28 23:56:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1647833006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1647833006/60001
4 years, 10 months ago (2016-02-02 20:23:11 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-02 21:19:42 UTC) #13
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 21:20:38 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ec1099f3a40ac978b0755bcfae7e622720d0e2cb
Cr-Commit-Position: refs/heads/master@{#373041}

Powered by Google App Engine
This is Rietveld 408576698