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

Issue 1313043003: Fix crash on J,K while swiping on custom tabs title (Closed)

Created:
5 years, 3 months ago by Yusuf
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash on J,K while swiping on custom tabs title We use LayoutManagerChrome on Tabbed mode and override all related swipe related code, but the parent class LayoutMangerDocument has document mode specific behavior which requires L only APIs. Until custom tabs launched, it wasn't possible to reach this codepath since no J,K builds had an activity launching with LayoutManagerDocument. This guards the call with a no op if the device is not document eligible. BUG=525153 Committed: https://crrev.com/a1051b84638e236bddcb2b5ae195278d292cc9bc Cr-Commit-Position: refs/heads/master@{#346783}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated isSwipeEnabled #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java View 1 1 chunk +1 line, -0 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 17 (5 generated)
Yusuf
5 years, 3 months ago (2015-09-01 21:35:53 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313043003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313043003/1
5 years, 3 months ago (2015-09-01 21:36:43 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/1313043003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java (right): https://codereview.chromium.org/1313043003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java#newcode430 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java:430: if (!FeatureUtilities.isDocumentModeEligible(context)) return; This should probably go into isSwipeEnabled ...
5 years, 3 months ago (2015-09-01 21:56:38 UTC) #5
Yusuf
https://codereview.chromium.org/1313043003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java (right): https://codereview.chromium.org/1313043003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java#newcode430 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java:430: if (!FeatureUtilities.isDocumentModeEligible(context)) return; On 2015/09/01 21:56:38, David Trainor wrote: ...
5 years, 3 months ago (2015-09-01 22:02:18 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313043003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313043003/20001
5 years, 3 months ago (2015-09-01 22:03:09 UTC) #8
David Trainor- moved to gerrit
https://codereview.chromium.org/1313043003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java (right): https://codereview.chromium.org/1313043003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java#newcode448 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java:448: || !FeatureUtilities.isDocumentModeEligible(mHost.getContext()) Now that I think about it, I ...
5 years, 3 months ago (2015-09-01 22:23:51 UTC) #9
Yusuf
https://codereview.chromium.org/1313043003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java (right): https://codereview.chromium.org/1313043003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java#newcode448 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java:448: || !FeatureUtilities.isDocumentModeEligible(mHost.getContext()) On 2015/09/01 22:23:50, David Trainor wrote: > ...
5 years, 3 months ago (2015-09-01 22:29:42 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-01 22:49:33 UTC) #12
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/1313043003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java (right): https://codereview.chromium.org/1313043003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java#newcode448 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java:448: || !FeatureUtilities.isDocumentModeEligible(mHost.getContext()) On 2015/09/01 22:29:42, Yusuf wrote: > ...
5 years, 3 months ago (2015-09-01 23:23:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313043003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313043003/20001
5 years, 3 months ago (2015-09-01 23:25:40 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-01 23:32:45 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 23:33:22 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a1051b84638e236bddcb2b5ae195278d292cc9bc
Cr-Commit-Position: refs/heads/master@{#346783}

Powered by Google App Engine
This is Rietveld 408576698