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

Issue 2961203002: Support library changes to allow a callback notifying the selection of default items for Browser Ac… (Closed)

Created:
3 years, 5 months ago by ltian
Modified:
3 years, 5 months ago
Reviewers:
Yusuf
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support library changes to allow a callback notifying the selection of default items for Browser Actions Changes in support library to add a PendingIntent in BrowserActionsIntent as the callback which will be launched if a default menu item is selected. The PendingIntent will includes the id of the chosen default menu item. This CL also adds a BroadcastReceiver in the CCT test app to handle the callback PendingIntent and displays the id of the chosen item. BUG=737814 Review-Url: https://codereview.chromium.org/2961203002 Committed: https://github.com/GoogleChrome/custom-tabs-client/commit/481ca67f75f35a6d0c6fe9778b1b69c21d6d9203

Patch Set 1 #

Patch Set 2 : Remove uncessary library. #

Patch Set 3 : Update extra name. #

Patch Set 4 : Send chosen id from data of intent and add a new api. #

Total comments: 9

Patch Set 5 : Update based on Yusuf's comments and add new API. #

Total comments: 16

Patch Set 6 : Update based on Yusuf's comments. #

Total comments: 11

Patch Set 7 : Update based on Yusuf's comments. #

Total comments: 2

Patch Set 8 : Update based on Yusuf's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -33 lines) Patch
M Application/src/main/AndroidManifest.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A Application/src/main/java/org/chromium/customtabsclient/BrowserActionsReceiver.java View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
M Application/src/main/java/org/chromium/customtabsclient/MainActivity.java View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java View 1 2 3 4 5 6 7 8 chunks +141 lines, -31 lines 0 comments Download
M shared/src/main/java/org/chromium/customtabsclient/shared/CustomTabsHelper.java View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (5 generated)
ltian
Can you take a look of this CL? Thanks!
3 years, 5 months ago (2017-06-29 00:52:44 UTC) #2
Yusuf
https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java (right): https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java#newcode93 customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java:93: public static final String EXTRA_DEFULT_ACTION = EXTRA_SELECTED_ACTION_PENDING_INTENT https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java#newcode198 customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java:198: ...
3 years, 5 months ago (2017-06-30 17:59:49 UTC) #3
ltian
https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java (right): https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java#newcode93 customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java:93: public static final String EXTRA_DEFULT_ACTION = On 2017/06/30 17:59:49, ...
3 years, 5 months ago (2017-06-30 22:14:33 UTC) #4
Yusuf
https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java (right): https://codereview.chromium.org/2961203002/diff/60001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java#newcode346 customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java:346: Log.e(TAG, "Missing action for item: " + i); On ...
3 years, 5 months ago (2017-07-07 21:36:35 UTC) #5
ltian
https://codereview.chromium.org/2961203002/diff/80001/Application/src/main/java/org/chromium/customtabsclient/BrowserActionsReceiver.java File Application/src/main/java/org/chromium/customtabsclient/BrowserActionsReceiver.java (right): https://codereview.chromium.org/2961203002/diff/80001/Application/src/main/java/org/chromium/customtabsclient/BrowserActionsReceiver.java#newcode1 Application/src/main/java/org/chromium/customtabsclient/BrowserActionsReceiver.java:1: package org.chromium.customtabsclient; On 2017/07/07 21:36:35, Yusuf wrote: > copyright ...
3 years, 5 months ago (2017-07-10 18:45:56 UTC) #6
Yusuf
one last round and I think we will be OK. https://codereview.chromium.org/2961203002/diff/100001/customtabs/src/android/support/customtabs/CustomTabsClient.java File customtabs/src/android/support/customtabs/CustomTabsClient.java (right): https://codereview.chromium.org/2961203002/diff/100001/customtabs/src/android/support/customtabs/CustomTabsClient.java#newcode257 ...
3 years, 5 months ago (2017-07-14 05:35:35 UTC) #7
ltian
https://codereview.chromium.org/2961203002/diff/100001/customtabs/src/android/support/customtabs/CustomTabsClient.java File customtabs/src/android/support/customtabs/CustomTabsClient.java (right): https://codereview.chromium.org/2961203002/diff/100001/customtabs/src/android/support/customtabs/CustomTabsClient.java#newcode257 customtabs/src/android/support/customtabs/CustomTabsClient.java:257: public static ResolveInfo getDefaultHandlerForIntent(PackageManager pm, Intent intent) { On ...
3 years, 5 months ago (2017-07-14 22:15:03 UTC) #8
Yusuf
lgtm with two comments https://codereview.chromium.org/2961203002/diff/100001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java (right): https://codereview.chromium.org/2961203002/diff/100001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java#newcode357 customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java:357: Log.e(TAG, "Missing action for item: ...
3 years, 5 months ago (2017-07-17 17:08:53 UTC) #9
ltian
https://codereview.chromium.org/2961203002/diff/120001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java File customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java (right): https://codereview.chromium.org/2961203002/diff/120001/customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java#newcode291 customtabs/src/android/support/customtabs/browseractions/BrowserActionsIntent.java:291: ResolveInfo defaultHandler = pm.resolveActivity(viewIntent, PackageManager.MATCH_DEFAULT_ONLY); On 2017/07/17 17:08:53, Yusuf ...
3 years, 5 months ago (2017-07-17 17:43:37 UTC) #10
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/2961203002/140001
3 years, 5 months ago (2017-07-17 18:04:41 UTC) #13
commit-bot: I haz the power
3 years, 5 months ago (2017-07-17 18:06:06 UTC) #16
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/GoogleChrome/custom-tabs-client/commit/481ca67f75f35a6d0c6...

Powered by Google App Engine
This is Rietveld 408576698