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

Issue 2191743002: Setup the delegate in Chrome, so we may put chrome java functions we need in blimp to the delegate … (Closed)

Created:
4 years, 4 months ago by xingliu
Modified:
4 years, 4 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+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

Setup the delegate in Chrome for java calls. Previously we have some separate impelmentation to call embedder functionality, such as BlimpSettingsCallbacks. This CL add a new way to call embedder's s java function in ChromeBlimpClientContextDelegate class, and add a java interface BlimpClientContextDelegate so in Blimp we can talk to this interface to ask the embedder to do stuff in java. The different from previous callback mechanism is that ChromeBlimpClientContextDelegate is also backed by native class, and it can associate itself with certain BlimpClientContext based on certain Profile in c++. Under current test infrastructure, it's very hard to test this delegate mechanism, so pure java callbacks will still in use. BUG=611097 Committed: https://crrev.com/448013905e45fc47bbc4d648ad64ec81efc1392a Cr-Commit-Position: refs/heads/master@{#409675}

Patch Set 1 #

Patch Set 2 : Fix blimp_unittests target. #

Patch Set 3 : Resovle merge conflicts. #

Total comments: 18

Patch Set 4 : Change comments and function names. #

Patch Set 5 : Move delegate creation into blocking call. #

Patch Set 6 : Fix issue when moving around code. #

Total comments: 6

Patch Set 7 : Fix based on codereview. #

Patch Set 8 : Rebased. #

Total comments: 5

Patch Set 9 : Java delegate is now set in Java. #

Total comments: 6

Patch Set 10 : Fix nit issues. #

Messages

Total messages: 63 (47 generated)
xingliu
Make ChromeBlimpClientContextDelegate can be access from BlimpClientContext, and we can put Chrome calls needed for ...
4 years, 4 months ago (2016-07-27 23:47:36 UTC) #3
nyquist
Could you also update the CL description like we discussed? https://codereview.chromium.org/2191743002/diff/40001/blimp/client/core/android/blimp_client_context_impl_android.h File blimp/client/core/android/blimp_client_context_impl_android.h (right): https://codereview.chromium.org/2191743002/diff/40001/blimp/client/core/android/blimp_client_context_impl_android.h#newcode31 ...
4 years, 4 months ago (2016-07-28 19:15:35 UTC) #21
xingliu
Fix based on code review. Move creation of delegate object in Java to finishNativeInitialization. Since ...
4 years, 4 months ago (2016-07-28 22:43:09 UTC) #31
nyquist
This mostly looks good. Could you update the CL description as well? https://codereview.chromium.org/2191743002/diff/100001/blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContextDelegate.java File blimp/client/public/android/java/src/org/chromium/blimp_public/BlimpClientContextDelegate.java ...
4 years, 4 months ago (2016-08-01 18:24:07 UTC) #34
xingliu
Thanks for the review. The new patch fixes all the nit issues and added a ...
4 years, 4 months ago (2016-08-02 16:19:15 UTC) #35
nyquist
Also maybe format the cl description to 72 chars and add: BUG=611097
4 years, 4 months ago (2016-08-03 02:03:11 UTC) #40
xingliu
On 2016/08/03 02:03:11, nyquist wrote: > Also maybe format the cl description to 72 chars ...
4 years, 4 months ago (2016-08-03 17:02:10 UTC) #42
David Trainor- moved to gerrit
https://codereview.chromium.org/2191743002/diff/140001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java File blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java (right): https://codereview.chromium.org/2191743002/diff/140001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java#newcode33 blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java:33: return nativeGetDelegateJavaObject(mNativeBlimpClientContextImplAndroid); assert mNativeBlimpClientContextImplAndroid != 0? If it is ...
4 years, 4 months ago (2016-08-03 19:39:54 UTC) #43
xingliu
Thanks for the review, this patch make the java delegate set in java. It's much ...
4 years, 4 months ago (2016-08-03 22:02:40 UTC) #48
nyquist
I think this looks great! Could you please update the CL description to reflect this ...
4 years, 4 months ago (2016-08-03 22:16:15 UTC) #51
xingliu
Fixed a couple of nit issues. https://codereview.chromium.org/2191743002/diff/160001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java File blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java (right): https://codereview.chromium.org/2191743002/diff/160001/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java#newcode24 blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpClientContextImpl.java:24: private BlimpClientContextDelegate mDelegate; ...
4 years, 4 months ago (2016-08-03 22:41:48 UTC) #52
nyquist
lgtm
4 years, 4 months ago (2016-08-03 23:05:43 UTC) #55
xingliu
On 2016/08/03 23:05:43, nyquist wrote: > lgtm Thanks!
4 years, 4 months ago (2016-08-03 23:09:35 UTC) #56
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/2191743002/180001
4 years, 4 months ago (2016-08-04 00:01:04 UTC) #60
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-08-04 00:07:31 UTC) #61
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 00:12:00 UTC) #63
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/448013905e45fc47bbc4d648ad64ec81efc1392a
Cr-Commit-Position: refs/heads/master@{#409675}

Powered by Google App Engine
This is Rietveld 408576698