DescriptionMade the open menu item in the context menu updated when the context menu is open.
Originally, FileSelectionHandler#updateFileSelectionAsync have the complex
conditional statements. And when util.platform.newUI() is true and
selection.totalCount is zero, updateContextMenuActionItems that updates the open
menu item is not called.
This CL arranged the statements by the target of update and added some comments.
BUG=243687
TEST=manually
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202508
Patch Set 1 : #
Total comments: 13
Patch Set 2 : Addressed comments. #
Total comments: 2
Patch Set 3 : Stop to assign null initially. #Messages
Total messages: 8 (0 generated)
|