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

Issue 299943003: Refactor ProfileOAuth2TokenServiceRequest into OAuth2TokenServiceRequest (Closed)

Created:
6 years, 7 months ago by maniscalco
Modified:
6 years, 6 months ago
CC:
chromium-reviews, pavely, msarda
Visibility:
Public.

Description

Componentize and rename ProfileOAuth2TokenServiceRequest. The purpose of this change is to move ProfileOAuth2TokenServiceRequest into google_apis/gaia and drop any browser dependencies. ProfileOAuth2TokenServiceRequest becomes OAuth2TokenServiceRequest. Add support for invalidating tokens. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274255

Patch Set 1 #

Patch Set 2 : Run the message loop during unit test tear down to avoid leaking the Core. #

Patch Set 3 : Allow ProfileOAuth2TokenServiceRequestTest to free UI thread resources. #

Total comments: 1

Patch Set 4 : Rewrite based on OOB feedback from rogerta. #

Patch Set 5 : Update comments referring to ProfileOAuth2TokenServiceRequest. #

Total comments: 30

Patch Set 6 : Apply CR feedback from rogerta and msarda. #

Patch Set 7 : Remove useless return value from Invalidate. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -730 lines) Patch
M chrome/browser/signin/android_profile_oauth2_token_service.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/profile_oauth2_token_service_request.h View 1 2 3 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/browser/signin/profile_oauth2_token_service_request.cc View 1 2 3 1 chunk +0 lines, -231 lines 0 comments Download
M chrome/browser/signin/profile_oauth2_token_service_request_unittest.cc View 1 2 3 1 chunk +0 lines, -159 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M components/signin/core/browser/profile_oauth2_token_service.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/signin/ios/browser/profile_oauth2_token_service_ios.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + google_apis/gaia/oauth2_token_service_request.h View 1 2 3 4 5 6 1 chunk +71 lines, -30 lines 0 comments Download
A + google_apis/gaia/oauth2_token_service_request.cc View 1 2 3 4 5 6 2 chunks +276 lines, -159 lines 3 comments Download
A + google_apis/gaia/oauth2_token_service_request_unittest.cc View 1 2 3 4 5 6 4 chunks +188 lines, -90 lines 0 comments Download
M google_apis/google_apis.gyp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
maniscalco
Hi Roger, would you please review this change? Here's the background. I needed a way ...
6 years, 7 months ago (2014-05-27 17:35:28 UTC) #1
maniscalco
https://codereview.chromium.org/299943003/diff/180001/google_apis/gaia/oauth2_token_service_proxy.h File google_apis/gaia/oauth2_token_service_proxy.h (right): https://codereview.chromium.org/299943003/diff/180001/google_apis/gaia/oauth2_token_service_proxy.h#newcode24 google_apis/gaia/oauth2_token_service_proxy.h:24: const base::Time& /* expiration_time */)> After talking with pavely@, ...
6 years, 7 months ago (2014-05-27 22:41:25 UTC) #2
maniscalco
Thanks for the detailed OOB feedback. Based on your suggestions, I've written this patch. RFAL!
6 years, 6 months ago (2014-05-29 23:13:50 UTC) #3
msarda
Kudos for the architecture of Core / RequestCore and InvalidateCore. https://codereview.chromium.org/299943003/diff/240001/google_apis/gaia/oauth2_token_service_request.cc File google_apis/gaia/oauth2_token_service_request.cc (right): https://codereview.chromium.org/299943003/diff/240001/google_apis/gaia/oauth2_token_service_request.cc#newcode31 ...
6 years, 6 months ago (2014-05-30 14:37:31 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm Thanks for the awesome refactor Nick! https://codereview.chromium.org/299943003/diff/240001/google_apis/gaia/oauth2_token_service_request.cc File google_apis/gaia/oauth2_token_service_request.cc (right): https://codereview.chromium.org/299943003/diff/240001/google_apis/gaia/oauth2_token_service_request.cc#newcode80 google_apis/gaia/oauth2_token_service_request.cc:80: const scoped_refptr<base::SingleThreadTaskRunner>& ...
6 years, 6 months ago (2014-05-30 15:39:00 UTC) #5
maniscalco
Thanks for the great feedback and speedy review! All addressed. RFAL. Note: I changed the ...
6 years, 6 months ago (2014-05-30 17:48:07 UTC) #6
msarda
lgtm
6 years, 6 months ago (2014-06-01 22:19:35 UTC) #7
maniscalco
The CQ bit was checked by maniscalco@chromium.org
6 years, 6 months ago (2014-06-02 03:22:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/299943003/280001
6 years, 6 months ago (2014-06-02 03:23:18 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-02 03:39:49 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 03:40:22 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/12486)
6 years, 6 months ago (2014-06-02 03:40:22 UTC) #12
maniscalco
The CQ bit was checked by maniscalco@chromium.org
6 years, 6 months ago (2014-06-02 16:07:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/299943003/280001
6 years, 6 months ago (2014-06-02 16:07:50 UTC) #14
commit-bot: I haz the power
Change committed as 274255
6 years, 6 months ago (2014-06-02 16:09:07 UTC) #15
blundell
https://codereview.chromium.org/299943003/diff/280001/google_apis/gaia/oauth2_token_service_request.cc File google_apis/gaia/oauth2_token_service_request.cc (right): https://codereview.chromium.org/299943003/diff/280001/google_apis/gaia/oauth2_token_service_request.cc#newcode107 google_apis/gaia/oauth2_token_service_request.cc:107: token_service_task_runner_->PostTask( There's a bug here. This object requires that ...
6 years, 6 months ago (2014-06-04 13:55:14 UTC) #16
maniscalco
https://codereview.chromium.org/299943003/diff/280001/google_apis/gaia/oauth2_token_service_request.cc File google_apis/gaia/oauth2_token_service_request.cc (right): https://codereview.chromium.org/299943003/diff/280001/google_apis/gaia/oauth2_token_service_request.cc#newcode107 google_apis/gaia/oauth2_token_service_request.cc:107: token_service_task_runner_->PostTask( Good catch. If we use PostTaskAndReply, the "owner" ...
6 years, 6 months ago (2014-06-04 16:41:38 UTC) #17
maniscalco
https://codereview.chromium.org/299943003/diff/280001/google_apis/gaia/oauth2_token_service_request.cc File google_apis/gaia/oauth2_token_service_request.cc (right): https://codereview.chromium.org/299943003/diff/280001/google_apis/gaia/oauth2_token_service_request.cc#newcode107 google_apis/gaia/oauth2_token_service_request.cc:107: token_service_task_runner_->PostTask( blundell, I want to make sure I understand ...
6 years, 6 months ago (2014-06-04 17:29:41 UTC) #18
maniscalco
6 years, 6 months ago (2014-06-04 18:31:40 UTC) #19
Message was sent while issue was closed.
Ah, I think I see what you meant about PostTaskAndReply.

Please see https://codereview.chromium.org/317773003/ for a patch.

Powered by Google App Engine
This is Rietveld 408576698