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 2571553003: Converts usage of EmbeddedContentViewActivity to CustomTabActivity. (Closed)

Created:
4 years ago by xingliu
Modified:
4 years ago
CC:
chromium-reviews, rouslan+payments_chromium.org, lizeb+watch-custom-tabs_chromium.org, sebsg+paymentswatch_chromium.org, gogerald+paymentswatch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Converts usage of EmbeddedContentViewActivity to CustomTabActivity. This CL changes all call sites of EmbedContentViewActivity to use CustomTabActivity. Didn't delete the EmbedContentViewActivity code yet, also not sure if we should clean the chrome strings for the titles if we don't need them. There are a couple of details in the UI: 1. Title is now using html document title instead of chrome strings. Not sure which one should we use here. 2. The color of the toolbar is same as EmbeddedContentViewActivity. But the color of icons or other components depends on their own logic and theme color of the activity, etc. 3. The url bar is not hidden for now, since the security icon color on tablet is not correct.(Black icon on a dark background). Don't have a spec so not sure if we would hide the url bar here and fix the icon color logic. Screen shots are attached in crbug. BUG=673522 Committed: https://crrev.com/c81574599b63cc6d9af0285aa0876983be526e5c Cr-Commit-Position: refs/heads/master@{#439168}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Work on feedback. #

Patch Set 3 : Rebased. #

Total comments: 1

Patch Set 4 : Hide the menu button and fix FRE sign in. #

Patch Set 5 : Fix the indention. #

Total comments: 4

Patch Set 6 : Add Chrome token for CustomTab info page. #

Total comments: 3

Patch Set 7 : Change to use View.GONE. #

Patch Set 8 : Keep the menu button. #

Total comments: 2

Patch Set 9 : Only hide menu item in FRE. #

Patch Set 10 : Fix an issue for url with chrome schema. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -37 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 6 7 8 9 5 chunks +33 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 1 2 3 4 5 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunActivity.java View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunPageDelegate.java View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/LightweightFirstRunActivity.java View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/ToSAndUMAFirstRunFragment.java View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/EditorView.java View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/HyperlinkPreference.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerCardEditor.java View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillServerProfilePreferences.java View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/snackbar/DataUseSnackbarController.java View 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 56 (38 generated)
xingliu
Converts usage of EmbeddedContentViewActivity to CustomTabActivity.
4 years ago (2016-12-12 23:55:44 UTC) #5
David Trainor- moved to gerrit
Adding tedchoc@. Regarding the differences, I think we're ok with adding restricted hooks to CCT ...
4 years ago (2016-12-13 19:04:36 UTC) #11
Ted C
lgtm w/ some small comments https://codereview.chromium.org/2571553003/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/2571553003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode996 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:996: CustomTabsIntent.Builder builder = new ...
4 years ago (2016-12-13 19:25:11 UTC) #12
David Trainor- moved to gerrit
lgtm
4 years ago (2016-12-14 18:51:26 UTC) #21
Ted C
last nit https://codereview.chromium.org/2571553003/diff/40001/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/2571553003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode1003 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:1003: .setShowTitle(true) the indenting should be 8 from ...
4 years ago (2016-12-14 19:01:20 UTC) #22
xingliu
Thanks for the review. After rebase, found an issue in FRE logic in CustomTabActivity, so ...
4 years ago (2016-12-14 20:02:08 UTC) #25
Ted C
lgtm w/ a modification to prevent anyone but chrome doing this https://codereview.chromium.org/2571553003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java (right): ...
4 years ago (2016-12-14 21:19:42 UTC) #28
xingliu
Fixes based on review. https://codereview.chromium.org/2571553003/diff/80001/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/2571553003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java#newcode1007 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java:1007: customTabIntent.intent.putExtra(CustomTabIntentDataProvider.EXTRA_IS_INFO_PAGE, true); On 2016/12/14 21:19:42, ...
4 years ago (2016-12-14 23:37:07 UTC) #29
David Trainor- moved to gerrit
https://codereview.chromium.org/2571553003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java (right): https://codereview.chromium.org/2571553003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode177 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:177: if (mIsInfoPage) mMenuButton.setVisibility(View.INVISIBLE); Do we want the layout to ...
4 years ago (2016-12-14 23:47:15 UTC) #30
Ted C
https://codereview.chromium.org/2571553003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java (right): https://codereview.chromium.org/2571553003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode177 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:177: if (mIsInfoPage) mMenuButton.setVisibility(View.INVISIBLE); On 2016/12/14 23:47:15, David Trainor wrote: ...
4 years ago (2016-12-15 00:26:46 UTC) #31
xingliu
Thanks for the review, now we keep the menu button. The code is cleaner since ...
4 years ago (2016-12-15 01:30:05 UTC) #34
David Trainor- moved to gerrit
lgtm % tedchoc
4 years ago (2016-12-15 19:06:31 UTC) #41
Ted C
lgtm w/ small comment https://codereview.chromium.org/2571553003/diff/140001/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/2571553003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java#newcode114 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java:114: if (mIsInfoPage) { I would ...
4 years ago (2016-12-15 19:20:06 UTC) #42
xingliu
Fixes based on feedback, also fix an issue for "chrome://" urls for info page. https://codereview.chromium.org/2571553003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java ...
4 years ago (2016-12-16 00:38:28 UTC) #45
David Trainor- moved to gerrit
lgtm lgtm!
4 years ago (2016-12-16 19:08:09 UTC) #48
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/2571553003/180001
4 years ago (2016-12-16 19:20:13 UTC) #51
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-16 19:36:12 UTC) #54
commit-bot: I haz the power
4 years ago (2016-12-16 19:38:26 UTC) #56
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c81574599b63cc6d9af0285aa0876983be526e5c
Cr-Commit-Position: refs/heads/master@{#439168}

Powered by Google App Engine
This is Rietveld 408576698