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

Issue 250943003: Add SyncAuthProvider interface and implementation (Closed)

Created:
6 years, 8 months ago by pavely
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add SyncAuthProvider interface and implementation SyncAuthProvider declares interface for sync engine to request and invalidate access token. SyncThreadProxy is very trivial implementation of SyncAuthProvider interface, the purpose is to post calls to UI thread without worrying that ProfileSyncAuthProvider will be invalid. ProfileSyncAuthProvider invokes corresponding functions from ProfileOAuth2TokenService. BUG=259913 R=tim@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267446

Patch Set 1 #

Total comments: 12

Patch Set 2 : Feedback #

Total comments: 4

Patch Set 3 : Finished comment. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -0 lines) Patch
A chrome/browser/sync/profile_sync_auth_provider.h View 1 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/sync/profile_sync_auth_provider.cc View 1 2 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/sync/profile_sync_auth_provider_unittest.cc View 1 chunk +91 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A sync/internal_api/public/sync_auth_provider.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
pavely
6 years, 8 months ago (2014-04-25 21:19:56 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/250943003/diff/1/chrome/browser/sync/profile_sync_auth_provider.cc File chrome/browser/sync/profile_sync_auth_provider.cc (right): https://codereview.chromium.org/250943003/diff/1/chrome/browser/sync/profile_sync_auth_provider.cc#newcode44 chrome/browser/sync/profile_sync_auth_provider.cc:44: DetachFromThread(); Explain this? https://codereview.chromium.org/250943003/diff/1/chrome/browser/sync/profile_sync_auth_provider.cc#newcode72 chrome/browser/sync/profile_sync_auth_provider.cc:72: : OAuth2TokenService::Consumer("sync_auth_provider"), nit - ...
6 years, 7 months ago (2014-04-29 22:12:11 UTC) #2
pavely
https://codereview.chromium.org/250943003/diff/1/chrome/browser/sync/profile_sync_auth_provider.cc File chrome/browser/sync/profile_sync_auth_provider.cc (right): https://codereview.chromium.org/250943003/diff/1/chrome/browser/sync/profile_sync_auth_provider.cc#newcode44 chrome/browser/sync/profile_sync_auth_provider.cc:44: DetachFromThread(); SyncThreadProxy is created on UI thread but used ...
6 years, 7 months ago (2014-04-30 19:46:39 UTC) #3
tim (not reviewing)
https://codereview.chromium.org/250943003/diff/20001/chrome/browser/sync/profile_sync_auth_provider.cc File chrome/browser/sync/profile_sync_auth_provider.cc (right): https://codereview.chromium.org/250943003/diff/20001/chrome/browser/sync/profile_sync_auth_provider.cc#newcode45 chrome/browser/sync/profile_sync_auth_provider.cc:45: // Detach NonThreadSafe from UI thread so that it ...
6 years, 7 months ago (2014-04-30 20:52:41 UTC) #4
pavely
https://codereview.chromium.org/250943003/diff/20001/chrome/browser/sync/profile_sync_auth_provider.cc File chrome/browser/sync/profile_sync_auth_provider.cc (right): https://codereview.chromium.org/250943003/diff/20001/chrome/browser/sync/profile_sync_auth_provider.cc#newcode45 chrome/browser/sync/profile_sync_auth_provider.cc:45: // Detach NonThreadSafe from UI thread so that it ...
6 years, 7 months ago (2014-04-30 21:16:55 UTC) #5
tim (not reviewing)
LGTM
6 years, 7 months ago (2014-04-30 21:59:08 UTC) #6
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 7 months ago (2014-04-30 22:00:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/250943003/40001
6 years, 7 months ago (2014-04-30 22:01:27 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 22:01:33 UTC) #9
commit-bot: I haz the power
Failed to apply patch for sync/sync_internal_api.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-04-30 22:01:33 UTC) #10
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 7 months ago (2014-04-30 22:22:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/250943003/60001
6 years, 7 months ago (2014-04-30 22:23:41 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 05:27:58 UTC) #13
Message was sent while issue was closed.
Change committed as 267446

Powered by Google App Engine
This is Rietveld 408576698