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

Issue 136723009: Move UbertokenFetcher from //chrome to //google_apis. (Closed)

Created:
6 years, 11 months ago by blundell
Modified:
6 years, 11 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Move UbertokenFetcher from //chrome to //google_apis. This CL eliminates //chrome- and //content-level dependencies from UbertokenFetcher and moves it to //google_apis/gaia. Notable changes: - Change UbertokenFetcher to take in the OAuth2TokenService and URLRequestContextGetter to use rather than the Profile. - Add a FakeOAuth2TokenService to enable moving the UbertokenFetcher unittest away from using FakeProfileOAuth2TokenService. BUG=330292 TBR=thakis Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245359

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rename sync's FakeOAuth2TokenService #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -422 lines) Patch
M chrome/browser/extensions/api/identity/gaia_web_auth_flow.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/signin/google_auto_login_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/google_auto_login_helper.cc View 2 chunks +6 lines, -1 line 0 comments Download
D chrome/browser/signin/ubertoken_fetcher.h View 1 chunk +0 lines, -65 lines 0 comments Download
D chrome/browser/signin/ubertoken_fetcher.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/browser/signin/ubertoken_fetcher_unittest.cc View 1 chunk +0 lines, -125 lines 0 comments Download
D chrome/browser/sync/fake_oauth2_token_service.h View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/sync/fake_oauth2_token_service.cc View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
A + chrome/browser/sync/fake_oauth2_token_service_for_sync.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/sync/fake_oauth2_token_service_for_sync.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/auto_login_infobar_delegate.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A google_apis/gaia/fake_oauth2_token_service.h View 1 chunk +46 lines, -0 lines 0 comments Download
A google_apis/gaia/fake_oauth2_token_service.cc View 1 chunk +36 lines, -0 lines 0 comments Download
A + google_apis/gaia/ubertoken_fetcher.h View 4 chunks +12 lines, -6 lines 0 comments Download
A + google_apis/gaia/ubertoken_fetcher.cc View 1 3 chunks +13 lines, -12 lines 0 comments Download
A + google_apis/gaia/ubertoken_fetcher_unittest.cc View 5 chunks +17 lines, -30 lines 0 comments Download
M google_apis/google_apis.gyp View 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
blundell
https://codereview.chromium.org/136723009/diff/1/chrome/browser/signin/google_auto_login_helper.cc File chrome/browser/signin/google_auto_login_helper.cc (right): https://codereview.chromium.org/136723009/diff/1/chrome/browser/signin/google_auto_login_helper.cc#newcode84 chrome/browser/signin/google_auto_login_helper.cc:84: uber_token_fetcher_.reset(new UbertokenFetcher( I didn't want to tackle GoogleAutoLoginHelper in ...
6 years, 11 months ago (2014-01-15 12:09:50 UTC) #1
Roger Tawa OOO till Jul 10th
lgtm Great job, thanks Colin! https://codereview.chromium.org/136723009/diff/1/google_apis/gaia/ubertoken_fetcher.cc File google_apis/gaia/ubertoken_fetcher.cc (right): https://codereview.chromium.org/136723009/diff/1/google_apis/gaia/ubertoken_fetcher.cc#newcode35 google_apis/gaia/ubertoken_fetcher.cc:35: DCHECK(&account_id); Did you mean: ...
6 years, 11 months ago (2014-01-15 14:41:19 UTC) #2
blundell
I ran into an unexpected problem on the trybots: there is a FakeOAuth2TokenService class in ...
6 years, 11 months ago (2014-01-15 14:45:59 UTC) #3
Roger Tawa OOO till Jul 10th
Should change sync to use FakeProfileOAuth2TokenService instead, but that makes this CL bigger. Creating a ...
6 years, 11 months ago (2014-01-15 15:02:23 UTC) #4
Roger Tawa OOO till Jul 10th
Doh! In my last comment, I said "chrome\sync\signin", but I meant "chrome\browser\signin".
6 years, 11 months ago (2014-01-15 15:36:18 UTC) #5
blundell
zea@: I renamed //chrome/browser/sync's FakeOAuth2TokenService to FakeOAuth2TokenServiceForSync (diff between PS1 and PS2). Please take a ...
6 years, 11 months ago (2014-01-16 16:01:36 UTC) #6
Nicolas Zea
Kind of an odd name, but not sure what's better :-/ sync LGTM
6 years, 11 months ago (2014-01-16 18:50:24 UTC) #7
blundell
TBR=thakis for the //chrome changes outside of //chrome/browser/signin and //chrome/browser/sync
6 years, 11 months ago (2014-01-16 19:54:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/136723009/300001
6 years, 11 months ago (2014-01-16 19:56:24 UTC) #9
blundell
The functionality of the fake in //chrome/browser/sync should probably just move into the one in ...
6 years, 11 months ago (2014-01-16 19:56:47 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 22:53:01 UTC) #11
Message was sent while issue was closed.
Change committed as 245359

Powered by Google App Engine
This is Rietveld 408576698