Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Issue 12226034: Files.app: show the warning message when drive authentication is failed (Closed)

Created:
7 years, 10 months ago by yoshiki
Modified:
7 years, 10 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv (Not doing code reviews), oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Files.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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -7 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 1 2 3 4 5 6 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/css/file_manager.css View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/file_manager/js/drive_banners.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 3 4 5 6 7 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/main.html View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/extensions/api/file_browser_private.json View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
yoshiki
@kinaba, could you take a look? thanks,
7 years, 10 months ago (2013-02-07 00:15:08 UTC) #1
kinaba
On 2013/02/07 00:15:08, yoshiki wrote: > @kinaba, could you take a look? thanks, code change ...
7 years, 10 months ago (2013-02-07 04:30:26 UTC) #2
yoshiki
On 2013/02/07 04:30:26, kinaba wrote: > On 2013/02/07 00:15:08, yoshiki wrote: > > @kinaba, could ...
7 years, 10 months ago (2013-02-07 10:31:16 UTC) #3
kinaba
On 2013/02/07 10:31:16, yoshiki wrote: > On 2013/02/07 04:30:26, kinaba wrote: > > On 2013/02/07 ...
7 years, 10 months ago (2013-02-08 01:00:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/12226034/4002
7 years, 10 months ago (2013-02-08 05:06:11 UTC) #5
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-08 05:06:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/12226034/10002
7 years, 10 months ago (2013-02-08 06:23:19 UTC) #7
commit-bot: I haz the power
Presubmit check for 12226034-10002 failed and returned exit status 1. INFO:root:Found 9 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-08 06:23:29 UTC) #8
yoshiki
Satoru-san, could you take a look at the extension part (chrome/browser/chromeos/extensions/*)?
7 years, 10 months ago (2013-02-08 06:48:14 UTC) #9
satorux1
The API name "logout" sounded a bit odd to me. Maybe "logoutUser" sounds better? You ...
7 years, 10 months ago (2013-02-08 07:28:15 UTC) #10
satorux1
oops. I meant to add asargent. sorry about the mess!
7 years, 10 months ago (2013-02-08 13:34:20 UTC) #11
asargent_no_longer_on_chrome
I agree with satorux1's comments, but other than that things look fine. When you've uploaded ...
7 years, 10 months ago (2013-02-11 22:09:13 UTC) #12
yoshiki
@satorux1, @asargent: Thank for the comments, I've changed the API name to "logoutUser". PTAL. https://codereview.chromium.org/12226034/diff/8008/chrome/browser/chromeos/extensions/file_browser_private_api.h ...
7 years, 10 months ago (2013-02-12 01:13:32 UTC) #13
satorux1
The new API name LGTM.
7 years, 10 months ago (2013-02-14 04:38:33 UTC) #14
yoshiki
@asargent: PTAL
7 years, 10 months ago (2013-02-14 06:21:19 UTC) #15
asargent_no_longer_on_chrome
LGTM w/ 1 nit https://codereview.chromium.org/12226034/diff/3002/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/12226034/diff/3002/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode683 chrome/browser/chromeos/extensions/file_browser_private_api.cc:683: SendResponse(true); nit: since you just ...
7 years, 10 months ago (2013-02-14 18:49:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/12226034/9005
7 years, 10 months ago (2013-02-18 02:14:41 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-18 03:41:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/12226034/34002
7 years, 10 months ago (2013-02-18 04:25:21 UTC) #19
commit-bot: I haz the power
7 years, 10 months ago (2013-02-18 06:34:28 UTC) #20
Message was sent while issue was closed.
Change committed as 183071

Powered by Google App Engine
This is Rietveld 408576698