|
|
DescriptionDon't create a LoFiBarPopupController if SnackbarManager is null
BUG=594381
Committed: https://crrev.com/e08672445f26f16bf7ed5f217447140cb2f3311a
Cr-Commit-Position: refs/heads/master@{#381078}
Patch Set 1 #
Messages
Total messages: 18 (5 generated)
megjablon@chromium.org changed reviewers: + dfalcantara@chromium.org
PTAL, thanks!
Looks like mLoFiBarPopupController is null checked everywhere outside of this, so lgtm.
The CQ bit was checked by megjablon@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1803823002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1803823002/1
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Don't create a LoFiBarPopupController if SnackbarManager is null BUG=594381 ========== to ========== Don't create a LoFiBarPopupController if SnackbarManager is null BUG=594381 Committed: https://crrev.com/e08672445f26f16bf7ed5f217447140cb2f3311a Cr-Commit-Position: refs/heads/master@{#381078} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/e08672445f26f16bf7ed5f217447140cb2f3311a Cr-Commit-Position: refs/heads/master@{#381078}
Message was sent while issue was closed.
ianwen@chromium.org changed reviewers: + ianwen@chromium.org
Message was sent while issue was closed.
Q: if the tab was created early via CCT prerendering, does it mean that after this patch lofi snackbar will never be shown for that tab? Is it fine? Let's say GSA starts a custom tab, is it possible that this tab will be opened in lofi mode? If so, how do we plan to notify the user?
Message was sent while issue was closed.
On 2016/03/16 00:35:25, Ian Wen wrote: > Q: if the tab was created early via CCT prerendering, does it mean that after > this patch lofi snackbar will never be shown for that tab? Is it fine? > > Let's say GSA starts a custom tab, is it possible that this tab will be opened > in lofi mode? If so, how do we plan to notify the user? We're not ok with not showing the snackbar when Lo-Fi is used. Yes, if GSA starts a custom tab, then it could get Lo-Fi mode. I'm not familiar with the recent changes in Tab and their consequences. Is it the case that the activity will be null when a tab is created via prerendering? Will we never have a snackbar manager at this time for prerendered tabs?
Message was sent while issue was closed.
It is possible that when a tab is created, the activity is not there. For example when the user clicks the system notification? One way you can try is to workaround it, is to not store mSnackbarManager in LofiBarController, and always call getSnackbarManager() from the mTab.
Message was sent while issue was closed.
Well, the notification triggers a Tab to be created eventually, but doesn't create it on the spot. Something else that could potentially happen is that the Tab runs some javascript that creates another Tab while the Tab is being transferred to another Activity.
Message was sent while issue was closed.
On 2016/03/16 01:12:46, dfalcantara wrote: > Well, the notification triggers a Tab to be created eventually, but doesn't > create it on the spot. Something else that could potentially happen is that the > Tab runs some javascript that creates another Tab while the Tab is being > transferred to another Activity. Could a Tab be loading resources while it doesn't have an Activity? If that doesn't happen then Ian's suggestion would work when onLoFiResponseReceived triggers the snackbar. Could the LoFiBarPopupController live in ChromeActivity?
Message was sent while issue was closed.
dfalcantara@chromium.org changed reviewers: + yusufo@chromium.org
Message was sent while issue was closed.
That's a Yusuf question :/ Does it make sense to open a thread about this outside of this CL?
Message was sent while issue was closed.
On 2016/03/16 18:46:14, dfalcantara wrote: > That's a Yusuf question :/ Does it make sense to open a thread about this > outside of this CL? That is not possible right now. We need an activity to create a tab. In a few weeks it may be possible.
Message was sent while issue was closed.
On 2016/03/16 18:48:08, Yusuf wrote: > On 2016/03/16 18:46:14, dfalcantara wrote: > > That's a Yusuf question :/ Does it make sense to open a thread about this > > outside of this CL? > > That is not possible right now. We need an activity to create a tab. > In a few weeks it may be possible. So currently getSnackbarManager() shouldn't return null since getActivity() won't return null on Tab creation, correct? |