DescriptionFiles.app: show the warning message when drive authentication is failed.
When authentication is failed on drive, files.app goes offline-mode. This patch adds message to notify that drive is unreachable and encourage user to log out.
Major changes:
- Add the private API to logout (fileBrowserPrivate.logout).
- Add the message "Google Drive could not be reached. Please <log out> and log back in."(IDS_FILE_BROWSER_DRIVE_NOT_REACHED).
- Show this message when |OnRefreshKeyInvalid()| is observed.
BUG=160486
TEST=Clear refresh token on drive-internals, and confirm the offline-mode message shows.
[email protected], [email protected]
[email protected]
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183071
Patch Set 1 #Patch Set 2 : #Patch Set 3 : rebase #Patch Set 4 : rebase #
Total comments: 6
Patch Set 5 : Changed the api name: logout -> logoutUser. #
Total comments: 1
Patch Set 6 : rebase #Patch Set 7 : Change AsyncExtensionFunction to SyncExtensionFunction. #Patch Set 8 : rebase #Messages
Total messages: 20 (0 generated)
|