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

Issue 12880014: Get OAuth2TokenService working on Android. (Closed)

Created:
7 years, 9 months ago by Patrick Dubroy
Modified:
7 years, 9 months ago
CC:
chromium-reviews, Raghu Simha, haitaol1, browser-components-watch_chromium.org, akalin, tim (not reviewing)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Get OAuth2TokenService working on Android. In order to get OAuth tokens on Android, we have to call out to Java. This CL makes it possible. It's not the ideal solution but works for now. BUG=222271 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190531 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190600

Patch Set 1 #

Patch Set 2 : Move code into OAuth2TokenService. #

Patch Set 3 : add token invalidation. #

Total comments: 10

Patch Set 4 : Address zea's nits. #

Patch Set 5 : Add separate call to invalidate token. #

Total comments: 1

Patch Set 6 : Change args to const refs. #

Total comments: 12

Patch Set 7 : Address nyquist's comments. #

Patch Set 8 : Disable broken unit tests. #

Patch Set 9 : Disable unit test on Android -- it doesn't make sense. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -16 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java View 1 2 3 4 5 6 6 chunks +64 lines, -10 lines 0 comments Download
M chrome/browser/history/web_history_service.cc View 1 2 3 4 5 6 7 8 5 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/signin/oauth2_token_service.h View 1 2 3 4 5 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/signin/oauth2_token_service.cc View 1 2 3 4 5 9 chunks +51 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_android.h View 1 2 3 4 5 6 3 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_android.cc View 1 2 3 4 5 6 3 chunks +58 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Patrick Dubroy
Please take a look.
7 years, 9 months ago (2013-03-25 17:58:54 UTC) #1
Nicolas Zea
sync LGTM with some nits https://codereview.chromium.org/12880014/diff/5001/chrome/browser/sync/profile_sync_service_android.cc File chrome/browser/sync/profile_sync_service_android.cc (right): https://codereview.chromium.org/12880014/diff/5001/chrome/browser/sync/profile_sync_service_android.cc#newcode192 chrome/browser/sync/profile_sync_service_android.cc:192: // Allocate a copy ...
7 years, 9 months ago (2013-03-25 18:13:17 UTC) #2
Patrick Dubroy
https://codereview.chromium.org/12880014/diff/5001/chrome/browser/sync/profile_sync_service_android.cc File chrome/browser/sync/profile_sync_service_android.cc (right): https://codereview.chromium.org/12880014/diff/5001/chrome/browser/sync/profile_sync_service_android.cc#newcode192 chrome/browser/sync/profile_sync_service_android.cc:192: // Allocate a copy of the callback on the ...
7 years, 9 months ago (2013-03-25 18:52:55 UTC) #3
Roger Tawa OOO till Jul 10th
Hi Patrick, a few questions below. https://codereview.chromium.org/12880014/diff/5001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/12880014/diff/5001/chrome/browser/history/web_history_service.cc#newcode79 chrome/browser/history/web_history_service.cc:79: oauth_scopes, this, access_token_); ...
7 years, 9 months ago (2013-03-25 19:14:35 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/12880014/diff/18001/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java File chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java (right): https://codereview.chromium.org/12880014/diff/18001/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java#newcode194 chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java:194: if (account == null) return; return on next ...
7 years, 9 months ago (2013-03-25 20:47:20 UTC) #5
nyquist
https://codereview.chromium.org/12880014/diff/21001/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java File chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java (right): https://codereview.chromium.org/12880014/diff/21001/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java#newcode8 chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java:8: import android.accounts.AccountManager; Should not import this. https://codereview.chromium.org/12880014/diff/21001/chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java#newcode224 chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java:224: public ...
7 years, 9 months ago (2013-03-25 21:01:21 UTC) #6
Patrick Dubroy
https://codereview.chromium.org/12880014/diff/5001/chrome/browser/history/web_history_service.cc File chrome/browser/history/web_history_service.cc (right): https://codereview.chromium.org/12880014/diff/5001/chrome/browser/history/web_history_service.cc#newcode79 chrome/browser/history/web_history_service.cc:79: oauth_scopes, this, access_token_); On 2013/03/25 19:14:35, Roger Tawa wrote: ...
7 years, 9 months ago (2013-03-25 21:15:49 UTC) #7
Patrick Dubroy
+brettw for owners rubber stamp on chrome/browser/history.
7 years, 9 months ago (2013-03-25 21:22:17 UTC) #8
nyquist
lgtm
7 years, 9 months ago (2013-03-25 21:42:35 UTC) #9
brettw
owners lgtm
7 years, 9 months ago (2013-03-25 23:07:31 UTC) #10
Patrick Dubroy
Committed patchset #8 manually as r190531 (presubmit successful).
7 years, 9 months ago (2013-03-26 00:49:18 UTC) #11
frankf
Why was this committed when unit tests failed in android_dbg_trigerred_tests? On 2013/03/26 00:49:18, dubroy wrote: ...
7 years, 9 months ago (2013-03-26 05:47:22 UTC) #12
Patrick Dubroy
7 years, 9 months ago (2013-03-26 08:46:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #9 manually as r190600 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698