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

Issue 2420663002: Custom Tabs: Preserve the offline bolt icon when showing an offline page. (Closed)

Created:
4 years, 2 months ago by dewittj
Modified:
4 years, 2 months ago
Reviewers:
Ted C, Yusuf, fgorski
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Custom Tabs: Preserve the offline bolt icon when showing an offline page. The security level gets updated after the custom tab is navigated to a new page, and as a result the security icon is removed, because offline pages are shown with a connection security level of NONE. However, the bolt icon is another state of the connection security level, so we need to update the bolt if we don't think that there is any security. BUG=653934 Committed: https://crrev.com/b0d23feb21be94dc0fce54f982e15b8262d49736 Cr-Commit-Position: refs/heads/master@{#425697}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address bug with security state transitions to NONE without involving offline page. #

Patch Set 3 : git cl try #

Total comments: 1

Patch Set 4 : Consolidate security button code. #

Total comments: 5

Patch Set 5 : remove redundant line. #

Patch Set 6 : Hide security button if no drawable is available. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -19 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java View 1 2 3 4 5 3 chunks +17 lines, -19 lines 0 comments Download

Messages

Total messages: 37 (22 generated)
dewittj
PTAL, thanks.
4 years, 2 months ago (2016-10-13 16:46:58 UTC) #4
fgorski
lgtm
4 years, 2 months ago (2016-10-13 17:04:28 UTC) #5
Ted C
+yusufo since this is CCT related https://codereview.chromium.org/2420663002/diff/1/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/2420663002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode501 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:501: showOfflineBoltIfNecessary(); What happens ...
4 years, 2 months ago (2016-10-13 18:33:27 UTC) #9
dewittj
Good catch. I'm not sure a page would be downgraded like you suggest normally without ...
4 years, 2 months ago (2016-10-13 20:57:56 UTC) #12
Ted C
On 2016/10/13 20:57:56, dewittj wrote: > Good catch. I'm not sure a page would be ...
4 years, 2 months ago (2016-10-13 21:06:25 UTC) #13
Yusuf
lgtm https://codereview.chromium.org/2420663002/diff/40001/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/2420663002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode501 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:501: if (!showOfflineBoltIfNecessary()) { would probably fit one line?
4 years, 2 months ago (2016-10-13 21:18:52 UTC) #14
dewittj
sorry for all the churn, but there was a bug in the last patchset, so ...
4 years, 2 months ago (2016-10-14 20:32:45 UTC) #16
Ted C
lgtm https://codereview.chromium.org/2420663002/diff/80001/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/2420663002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode514 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:514: mSecurityButton.setImageDrawable(null); To make this more correct, I would ...
4 years, 2 months ago (2016-10-14 20:37:59 UTC) #17
dewittj
https://codereview.chromium.org/2420663002/diff/80001/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/2420663002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode514 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:514: mSecurityButton.setImageDrawable(null); On 2016/10/14 20:37:59, Ted C wrote: > To ...
4 years, 2 months ago (2016-10-14 20:49:31 UTC) #18
Ted C
https://codereview.chromium.org/2420663002/diff/80001/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/2420663002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java#newcode514 chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java:514: mSecurityButton.setImageDrawable(null); On 2016/10/14 20:49:30, dewittj wrote: > On 2016/10/14 ...
4 years, 2 months ago (2016-10-14 21:08:03 UTC) #21
dewittj
On 2016/10/14 21:08:03, Ted C wrote: > https://codereview.chromium.org/2420663002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java > File > chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java > (right): > ...
4 years, 2 months ago (2016-10-14 21:59:16 UTC) #26
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/2420663002/120001
4 years, 2 months ago (2016-10-17 15:59:53 UTC) #31
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/2420663002/120001
4 years, 2 months ago (2016-10-17 16:20:40 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 2 months ago (2016-10-17 16:35:05 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 16:38:52 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b0d23feb21be94dc0fce54f982e15b8262d49736
Cr-Commit-Position: refs/heads/master@{#425697}

Powered by Google App Engine
This is Rietveld 408576698