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

Issue 2620763004: [Android] Fix bugs for menu item display in CCT (Closed)

Created:
3 years, 11 months ago by ltian
Modified:
3 years, 11 months ago
Reviewers:
Ted C
CC:
chromium-reviews, tfarina, lizeb+watch-custom-tabs_chromium.org, browser-components-watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Fix bugs for menu item display in CCT Fix several bugs related to the menu items displayed in CCT, including: 1. The text message shown on the snackbar for bookmarked page is incorrect. Current text message displayed is "Open in [Chrome Dev]" and the correct one should be "Bookmarked in [Chrome Dev"]. 2. "Find in page", "Add to Home screen", "Request desktop site" and "Open in browser" items should not be displayed in Media Viewer CCT. Hide these items if it is Media Viewer and also add a test case for it. 3. Disable download item if CCT loads a chrome native page. BUG=679255, 679256 Review-Url: https://codereview.chromium.org/2620763004 Cr-Commit-Position: refs/heads/master@{#442638} Committed: https://chromium.googlesource.com/chromium/src/+/0a91e531b7f77bc2111e46c59f5e0d03afa1ffca

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -6 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkUtils.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java View 4 chunks +12 lines, -5 lines 3 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
ltian
tedchoc@chromium.org: can you take a look about my changes in this CL? Thanks!
3 years, 11 months ago (2017-01-10 00:03:38 UTC) #6
Ted C
https://codereview.chromium.org/2620763004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java (right): https://codereview.chromium.org/2620763004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java#newcode116 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java:116: addToHomeScreenItem.setVisible(false); we likely want to disable download and bookmark ...
3 years, 11 months ago (2017-01-10 00:55:59 UTC) #7
ltian
https://codereview.chromium.org/2620763004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java (right): https://codereview.chromium.org/2620763004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java#newcode116 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java:116: addToHomeScreenItem.setVisible(false); On 2017/01/10 00:55:59, Ted C wrote: > we ...
3 years, 11 months ago (2017-01-10 01:08:13 UTC) #8
Ted C
lgtm https://codereview.chromium.org/2620763004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java (right): https://codereview.chromium.org/2620763004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java#newcode116 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java:116: addToHomeScreenItem.setVisible(false); On 2017/01/10 01:08:13, ltian wrote: > On ...
3 years, 11 months ago (2017-01-10 17:24:05 UTC) #9
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/2620763004/1
3 years, 11 months ago (2017-01-10 18:43:19 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 18:48:48 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0a91e531b7f77bc2111e46c59f5e...

Powered by Google App Engine
This is Rietveld 408576698