Made 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 Review URL: https://chromiumcodereview.appspot.com/15950003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202508 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment