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

Issue 2261273002: Integrate UI with authentication flow. (Closed)

Created:
4 years, 3 months ago by xingliu
Modified:
4 years, 3 months ago
CC:
anandc+watch-blimp_chromium.org, chromium-reviews, dtrainor+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Integrate UI with authentication flow. 1. Integrate connect call into Blimp settings UI. 2. Polish the connect functions in java and c++, now identity_source is responsible for handling GoogleServiceAuthError::REQUEST_CANCELED, since the Java approach(AccountTrackerService listener) didn't work with non-startup connect attempts. And code structure is cleaner in this way. 3. Removed BlimpSettingsCallback, and moved embedder functions into BlimpClientContextDelegate. Also added testing classes for BlimpClientContext and BlimpClientContextDelegate, but these classes can only test shim Java layer. 4. Created BUILD.gn for core/settings, and put jni files there. Java file is still in core/, for easier review diff. There will be future CL to move these Java files. 5. Added BlimpClientContextInternal Java interface to decouple internal build targets. BUG=624457 Committed: https://crrev.com/e8dee94d09ad68c28f72ee1acabcbaab0b071fbe Cr-Commit-Position: refs/heads/master@{#415511}

Patch Set 1 #

Patch Set 2 : Misc fixes. #

Patch Set 3 : Decouple settings from context. #

Patch Set 4 : Make non-android build happy. #

Patch Set 5 : Moving two java files back for easier review. #

Patch Set 6 : Misc fix. #

Total comments: 34

Patch Set 7 : Update for review. #

Patch Set 8 : Remove c++ internal interface. #

Patch Set 9 : Polish wording in the comment. #

Total comments: 10

Patch Set 10 : Misc fixes/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+859 lines, -183 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -1 line 0 comments Download
M blimp/client/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/android/AndroidManifest.xml.jinja2 View 2 chunks +4 lines, -1 line 0 comments Download
M blimp/client/app/android/java/strings/android_blimp_strings.grd View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -1 line 0 comments Download
A blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContext.java View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A blimp/client/app/android/javatests/src/org/chromium/blimp/core/MockBlimpClientContextDelegate.java View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/BlimpPreferencesTest.java View 1 2 3 4 5 6 7 8 9 3 chunks +110 lines, -30 lines 0 comments Download
M blimp/client/app/android/javatests/src/org/chromium/blimp/core/settings/MockPreferences.java View 1 chunk +5 lines, -3 lines 0 comments Download
M blimp/client/core/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +14 lines, -18 lines 0 comments Download
M blimp/client/core/android/blimp_client_context_impl_android.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/client/core/android/blimp_client_context_impl_android.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M blimp/client/core/android/blimp_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java View 1 2 3 4 5 6 5 chunks +17 lines, -10 lines 0 comments Download
M blimp/client/core/android/java/src/org/chromium/blimp/core/DummyBlimpClientContext.java View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
D blimp/client/core/android/java/src/org/chromium/blimp/core/settings/AboutBlimpPreferences.java View 1 2 3 4 5 6 7 8 9 5 chunks +174 lines, -28 lines 0 comments Download
A blimp/client/core/android/java/src/org/chromium/blimp/core/settings/BlimpPreferencesDelegate.java View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
D blimp/client/core/android/java/src/org/chromium/blimp/core/settings/PreferencesUtil.java View 1 2 3 4 2 chunks +21 lines, -2 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -3 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -9 lines 0 comments Download
M blimp/client/core/session/identity_source.h View 3 chunks +9 lines, -1 line 0 comments Download
M blimp/client/core/session/identity_source.cc View 1 2 3 4 5 6 7 8 9 6 chunks +47 lines, -3 lines 0 comments Download
M blimp/client/core/session/identity_source_unittest.cc View 1 2 3 4 5 2 chunks +43 lines, -1 line 0 comments Download
A blimp/client/core/settings/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
A blimp/client/core/settings/android/blimp_settings_android.h View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
A blimp/client/core/settings/android/blimp_settings_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
M blimp/client/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContext.java View 1 2 3 4 5 6 2 chunks +3 lines, -6 lines 0 comments Download
M blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContextDelegate.java View 1 chunk +11 lines, -0 lines 0 comments Download
D blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpSettingsCallbacks.java View 1 chunk +0 lines, -17 lines 0 comments Download
M build/android/lint/suppressions.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/blimp/BlimpSettingsCallbacksImpl.java View 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/blimp/ChromeBlimpClientContextDelegate.java View 5 chunks +16 lines, -21 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/MainPreferences.java View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 48 (36 generated)
xingliu
This CL integrates UI with token flow. Please help review, thanks.
4 years, 3 months ago (2016-08-23 17:44:13 UTC) #18
David Trainor- moved to gerrit
looking good! have a few questions around the internal class and what we can share ...
4 years, 3 months ago (2016-08-29 05:12:25 UTC) #23
xingliu
Thanks for the review, update the patch to fix most of the issues. The only ...
4 years, 3 months ago (2016-08-30 04:47:43 UTC) #27
David Trainor- moved to gerrit
lgtm % nits https://codereview.chromium.org/2261273002/diff/100001/blimp/client/core/android/java/src/org/chromium/blimp/core/settings/AboutBlimpPreferences.java File blimp/client/core/android/java/src/org/chromium/blimp/core/settings/AboutBlimpPreferences.java (right): https://codereview.chromium.org/2261273002/diff/100001/blimp/client/core/android/java/src/org/chromium/blimp/core/settings/AboutBlimpPreferences.java#newcode240 blimp/client/core/android/java/src/org/chromium/blimp/core/settings/AboutBlimpPreferences.java:240: pref.setChecked(false); On 2016/08/30 04:47:42, xingliu wrote: ...
4 years, 3 months ago (2016-08-30 20:46:29 UTC) #30
xingliu
Fixes based on review. @mikecase: Please review changes in src/build/android/lint/suppressions.xml. https://codereview.chromium.org/2261273002/diff/100001/blimp/client/core/settings/android/blimp_settings_android.cc File blimp/client/core/settings/android/blimp_settings_android.cc (right): https://codereview.chromium.org/2261273002/diff/100001/blimp/client/core/settings/android/blimp_settings_android.cc#newcode38 ...
4 years, 3 months ago (2016-08-30 22:27:37 UTC) #32
mikecase (-- gone --)
src/build/android/lint/suppressions.xml lgtm
4 years, 3 months ago (2016-08-30 22:50:15 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2261273002/180001
4 years, 3 months ago (2016-08-30 23:50:00 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/249796)
4 years, 3 months ago (2016-08-30 23:58:19 UTC) #42
nyquist
blimp/client/DEPS lgtm
4 years, 3 months ago (2016-08-31 00:18:51 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2261273002/180001
4 years, 3 months ago (2016-08-31 00:19:30 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-08-31 00:25:16 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 00:27:08 UTC) #48
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/e8dee94d09ad68c28f72ee1acabcbaab0b071fbe
Cr-Commit-Position: refs/heads/master@{#415511}

Powered by Google App Engine
This is Rietveld 408576698