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

Issue 1224553003: customtabs: Convert to the new AIDL interface. (Closed)

Created:
5 years, 5 months ago by Benoit L
Modified:
5 years, 5 months ago
Reviewers:
pasko, Yusuf, lizeb1, Maria
CC:
chromium-reviews, ianwen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

customtabs: Convert to the new AIDL interface, temporarily imported. - Update the service implementation and the matching tests for Custom Tabs to the current external AIDL interfaces - Temporarily import the files in Chrome - Remove the chromium AIDL files - Update GYP and GN files TESTED=unittests and example application

Patch Set 1 #

Patch Set 2 : Update AIDL. #

Patch Set 3 : Add the support library to third_party. #

Patch Set 4 : Update third_party/android_customtabs with the latest patch version (#10), convert internal constan… #

Total comments: 4

Patch Set 5 : Update to external patch #16, rebase and update constants. #

Total comments: 3

Patch Set 6 : Fix bugs found by testing with the example application. #

Patch Set 7 : Move code back to Chrome. #

Total comments: 19

Patch Set 8 : Update to patch #21, remove unused files in Chrome, edit CustomTabsIntent. #

Patch Set 9 : Fix the action button. #

Patch Set 10 : Don't prerender when we should not. #

Total comments: 3

Patch Set 11 : Add safePutBinder and a session extra in the testing activity. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -426 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/chrome_apk.gyp View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/android/java/AndroidManifest.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/proguard.flags View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
A chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/android/java/src/android/support/customtabs/ICustomTabsCallback.aidl View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/android/java/src/android/support/customtabs/ICustomTabsService.aidl View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A + chrome/android/java/src/android/support/customtabs/OWNERS View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/android/java/src/android/support/customtabs/common.aidl View 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java View 1 2 3 4 6 chunks +11 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 6 7 9 chunks +14 lines, -15 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 1 2 3 4 5 6 7 8 4 chunks +38 lines, -106 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 4 5 6 7 8 9 15 chunks +98 lines, -122 lines 1 comment Download
D chrome/android/java/src/org/chromium/chrome/browser/customtabs/ICustomTabsConnectionCallback.aidl View 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/customtabs/ICustomTabsConnectionService.aidl View 1 chunk +0 lines, -60 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/customtabs/common.aidl View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java View 1 2 3 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +60 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java View 1 2 3 4 5 6 7 6 chunks +48 lines, -48 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
lizeb1
Hello yusufo, This is the CL converting the current service to the new AIDL interface. ...
5 years, 5 months ago (2015-07-06 15:17:01 UTC) #2
lizeb1
Hello yusufo, This is the CL converting the current service to the new AIDL interface. ...
5 years, 5 months ago (2015-07-06 15:17:27 UTC) #4
Yusuf
Note that we need an update for the third_party parts. Looks good overall. Just a ...
5 years, 5 months ago (2015-07-08 23:15:55 UTC) #5
pasko
sorry for jumping in late. Not using third_party would be the easier/faster way to move ...
5 years, 5 months ago (2015-07-09 13:37:13 UTC) #6
Benoit L
Hello all, This is a CL temporarily importing the customtabs support library inside Chromium. There ...
5 years, 5 months ago (2015-07-09 19:01:11 UTC) #7
Benoit L
https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java File chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java (right): https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java#newcode87 chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java:87: @SuppressLint("NewApi") // This is *never* called in Chrome, only ...
5 years, 5 months ago (2015-07-09 19:02:36 UTC) #8
Yusuf
https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java (right): https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode46 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:46: "android.support.customtabs.CLOSE_BUTTON_STYLE"; android.support.customtabs.extra.CLOSE_BUTTON_STYLE https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode63 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:63: "android.support.customtabs.TITLE_VISIBILITY"; android.support.customtabs.extra.TITLE_VISIBILITY https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java#newcode103 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java:103: mIcon ...
5 years, 5 months ago (2015-07-09 21:51:25 UTC) #9
Yusuf
https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode337 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:337: callback.onUserNavigationStarted(url, null); Note that these are back to Uri ...
5 years, 5 months ago (2015-07-10 00:36:38 UTC) #10
Maria
https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java File chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java (right): https://codereview.chromium.org/1224553003/diff/120001/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java#newcode80 chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java:80: * @param session {@link CustomTabsSession} to associate the intent ...
5 years, 5 months ago (2015-07-10 07:19:43 UTC) #12
Benoit L
Another day, another patch! Sorry mariakhomenko, you were not included in the first message I ...
5 years, 5 months ago (2015-07-10 14:34:59 UTC) #13
Yusuf
customtabs/ and document/ lgtm with one remaining nit. https://codereview.chromium.org/1224553003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java (left): https://codereview.chromium.org/1224553003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java#oldcode83 chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java:83: intent.putExtra(CustomTabIntentDataProvider.EXTRA_CUSTOM_TABS_SESSION_ID, ...
5 years, 5 months ago (2015-07-10 16:42:00 UTC) #14
Benoit L
https://codereview.chromium.org/1224553003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java (left): https://codereview.chromium.org/1224553003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java#oldcode83 chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java:83: intent.putExtra(CustomTabIntentDataProvider.EXTRA_CUSTOM_TABS_SESSION_ID, -1); On 2015/07/10 16:42:00, Yusuf wrote: > Do ...
5 years, 5 months ago (2015-07-10 16:47:07 UTC) #15
Benoit L
https://codereview.chromium.org/1224553003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java File chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java (left): https://codereview.chromium.org/1224553003/diff/180001/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java#oldcode83 chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java:83: intent.putExtra(CustomTabIntentDataProvider.EXTRA_CUSTOM_TABS_SESSION_ID, -1); On 2015/07/10 16:47:06, lizeb wrote: > On ...
5 years, 5 months ago (2015-07-10 17:19:22 UTC) #16
pasko
lgtm
5 years, 5 months ago (2015-07-10 17:43:41 UTC) #17
Maria
lgtm https://codereview.chromium.org/1224553003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/1224553003/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode151 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:151: if (callback == null || mSessionParams.containsKey(callback)) return false; ...
5 years, 5 months ago (2015-07-10 18:22:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1224553003/200001
5 years, 5 months ago (2015-07-10 18:28:29 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/90462) (exceeded global retry quota)
5 years, 5 months ago (2015-07-10 18:50:31 UTC) #23
Benoit L
5 years, 5 months ago (2015-07-15 08:01:56 UTC) #24
On 2015/07/10 18:50:31, commit-bot: I haz the power wrote:
> Try jobs failed on following builders:
>   android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromiu...)
> 
> (exceeded global retry quota)

Re-uploaded and committed by yusufo@ as crrev.com/1234643002.
Closing this issue.

Powered by Google App Engine
This is Rietveld 408576698