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

Issue 1291083004: [Custom Tabs]Add API for updating action button in service (Closed)

Created:
5 years, 4 months ago by Ian Wen
Modified:
5 years, 3 months ago
Reviewers:
pasko, Benoit L, Yusuf, 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

[Custom Tabs]Add API for updating action button in service This CL adds a new API in ICustomTabsService.aidl, letting client app update the toolbar UI for an ongoing session. Currently only updating the action button is allowed. BUG=510256 Committed: https://crrev.com/773b9523d10279efa4a83642fbc82ae4eebe1219 Cr-Commit-Position: refs/heads/master@{#350047}

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Total comments: 16

Patch Set 3 : address comments #

Total comments: 10

Patch Set 4 : make updateToolbarUrl return boolean #

Total comments: 26

Patch Set 5 : move more logic to ActionButtonParams #

Patch Set 6 : change signature from updateToolbar to updateVisual #

Total comments: 1

Patch Set 7 : fix test #

Patch Set 8 : cr.->cr_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -87 lines) Patch
M chrome/android/java/src/android/support/customtabs/ICustomTabsService.aidl View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java View 1 2 3 4 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 7 chunks +47 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 1 2 3 4 5 6 4 chunks +11 lines, -54 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 4 5 5 chunks +30 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java View 1 2 3 4 5 4 chunks +16 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarLayout.java View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java View 1 2 3 4 5 6 7 2 chunks +14 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (9 generated)
Ian Wen
5 years, 4 months ago (2015-08-19 06:05:02 UTC) #2
Yusuf
https://codereview.chromium.org/1291083004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java (right): https://codereview.chromium.org/1291083004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode101 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:101: static CustomTabContentHandler getActiveContentHandler() { have a static call that ...
5 years, 4 months ago (2015-08-19 06:29:16 UTC) #3
Benoit L
Thank you for doing this, it is probably the good way to update the UI. ...
5 years, 4 months ago (2015-08-19 09:08:19 UTC) #4
Ian Wen
Thanks for the comments. All addressed. In patchset 3 I couldn't find an elegant way ...
5 years, 4 months ago (2015-08-19 22:53:15 UTC) #5
Benoit L
Thank you, looks good. Only one real comment, I think that the service call should ...
5 years, 4 months ago (2015-08-20 09:28:50 UTC) #6
Ian Wen
https://codereview.chromium.org/1291083004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java (right): https://codereview.chromium.org/1291083004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java#newcode27 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java:27: * Convenient constructor for {@link ActionButtonParams}. On 2015/08/20 09:28:49, ...
5 years, 4 months ago (2015-08-20 21:16:56 UTC) #7
Yusuf
https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java (right): https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java#newcode22 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java:22: final Bitmap mIcon; see below. I think we should ...
5 years, 4 months ago (2015-08-21 00:07:37 UTC) #8
Benoit L
https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java (right): https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java:61: static Bitmap tryParseBitmapFromBundle(Context context, Bundle bundle) { It seems ...
5 years, 4 months ago (2015-08-21 11:31:15 UTC) #9
Ian Wen
ptal. I followed yusufo@'s suggestion and made ActionButtonParams mutable, which made the implementation cleaner. https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java ...
5 years, 4 months ago (2015-08-21 17:01:24 UTC) #10
Benoit L
LGTM, thank you. https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java (right): https://codereview.chromium.org/1291083004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java:61: static Bitmap tryParseBitmapFromBundle(Context context, Bundle bundle) ...
5 years, 4 months ago (2015-08-21 17:06:27 UTC) #11
Ian Wen
yusufo@, could you take a final look at the CL to see whether there are ...
5 years, 3 months ago (2015-09-08 17:01:00 UTC) #12
Ian Wen
yusufo@, could you take a final look at the CL to see whether there are ...
5 years, 3 months ago (2015-09-08 17:01:01 UTC) #13
Yusuf
On 2015/09/08 17:01:01, Ian Wen wrote: > yusufo@, could you take a final look at ...
5 years, 3 months ago (2015-09-09 05:18:38 UTC) #14
Yusuf
FYI, We can land this now after updating the signatures.
5 years, 3 months ago (2015-09-21 16:32:19 UTC) #15
Ian Wen
Maria, could you ptal the change in IntentUtils?
5 years, 3 months ago (2015-09-21 17:58:08 UTC) #18
Ian Wen
Maria, could you ptal the change in IntentUtils?
5 years, 3 months ago (2015-09-21 17:58:08 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291083004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291083004/100001
5 years, 3 months ago (2015-09-21 17:59:37 UTC) #21
Maria
lgtm lgtm for IntentUtils, didn't review the rest https://codereview.chromium.org/1291083004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java File chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java (right): https://codereview.chromium.org/1291083004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java#newcode28 chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java:28: private ...
5 years, 3 months ago (2015-09-21 18:02:18 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/122144) android_compile_dbg on ...
5 years, 3 months ago (2015-09-21 18:14:49 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291083004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291083004/120001
5 years, 3 months ago (2015-09-21 20:26:09 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-21 21:17:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291083004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291083004/140001
5 years, 3 months ago (2015-09-21 21:32:19 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-21 22:22:30 UTC) #32
commit-bot: I haz the power
5 years, 3 months ago (2015-09-21 22:23:49 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/773b9523d10279efa4a83642fbc82ae4eebe1219
Cr-Commit-Position: refs/heads/master@{#350047}

Powered by Google App Engine
This is Rietveld 408576698