New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 875466 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 21
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: ----



Sign in to add a comment

Show “Available offline” in overflow menu for Drive files

Project Member Reported by mcirimele@chromium.org, Aug 17

Issue description

Chrome OS version: 70.0.3524.2 (STABLE)

Right now Files app shows the "Available offline" action in the overflow menu in an unexpected way. I'd like to make it more consistent by always showing this action in the overflow menu for Drive files.  

Steps to reproduce:
1. Open a Google Drive folder
2. Select a Drive file which is not "available offline".
3. Open the overflow menu (available offline is not shown)
4. Open the context menu
5. Select "Available offline"
6. Open the overflow menu

Expected result:
When a Drive file is selected, the overflow menu displays the "Available offline" action. 

Observed result:
The first time the Drive file is selected "Available offline" is only shown in the context menu. Once it's been toggled on or off for a file it is shown in the overflow menu as well. 

Video: https://photos.app.goo.gl/GUQR68yZBiMAa3Ag8

 
Sorry, the correct version number here is:

67.0.3396.99 (OFFICIAL)
Related to  issue 875474 
Labels: OS-Chrome
Labels: -M-70 M-71
Labels: -M-71 Files-Fixit-2018 M-72
This looks fixed in version 71.0.3572.0
I am still able to reproduce on M71. Available offline does not appear in the 3-dot menu when I initially select a Drive file.
Owner: slangley@chromium.org
Status: Started (was: Available)
I don't think this repros with DriveFS, investigating.
Cc: lucmult@chromium.org
So the problem is that there is some state that remains un-initialized until the first time the context menu is shown, including toggle-offline which needs to be set to show this particular option.

We need to see if we can enable this option while the user is clicking on the files, not just when they right click.

https://cs.chromium.org/chromium/src/ui/file_manager/file_manager/foreground/js/actions_controller.js?rcl=e56b996c63979983935a9fa2cb48aef1c36d4f1d&l=138
I have a lead on a fix.
Project Member

Comment 12 by bugdroid1@chromium.org, Nov 21

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cfb4a8628a4c89b9958910ee9ba89cb6dd333f95

commit cfb4a8628a4c89b9958910ee9ba89cb6dd333f95
Author: Stuart Langley <slangley@google.com>
Date: Wed Nov 21 05:22:29 2018

Fix "Available Offline" not showing in the file context menu.

If the right click context menu has not been displayed at least once
then some commands are not available in the file select menu.

If the use is clicking through files, we will assume that the menu
context should be FILE_LIST temporarily so that the correct options
appear in the file selection menu.

Added integration test to validate.

Bug:  875466 
Change-Id: Idc79f1c25690b6c8bb7f585e0c9261ea4bec3996
Reviewed-on: https://chromium-review.googlesource.com/c/1343812
Commit-Queue: Stuart Langley <slangley@chromium.org>
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609919}
[modify] https://crrev.com/cfb4a8628a4c89b9958910ee9ba89cb6dd333f95/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
[modify] https://crrev.com/cfb4a8628a4c89b9958910ee9ba89cb6dd333f95/ui/file_manager/file_manager/foreground/js/actions_controller.js
[modify] https://crrev.com/cfb4a8628a4c89b9958910ee9ba89cb6dd333f95/ui/file_manager/integration_tests/file_manager/drive_specific.js

Status: Fixed (was: Started)

Sign in to add a comment