Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Issue 12221132: filemanager: Fix GetDriveConnectionStateFunctionChange to return "offline" when DriveSystemService … (Closed)

Created:
7 years, 10 months ago by Haruki Sato
Modified:
7 years, 10 months ago
Reviewers:
yoshiki, hashimoto
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

filemanager: Fix GetDriveConnectionStateFunctionChange to return "offline" when DriveSystemService is unavailable. Connection-type "offline" is returned with reason "no_service" Also renamed related variables in JS. BUG=175522 TEST=Verfify Files app (including "open file", "save file" dialogs) is working if Drive is disblaed, in Incognito window, in Guest mode. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182428

Patch Set 1 : #

Total comments: 2

Patch Set 2 : added no_network as a reason if applicable. #

Total comments: 2

Patch Set 3 : fix JS style. #

Total comments: 2

Patch Set 4 : refactor the if-clause #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -10 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 6 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Haruki Sato
As talked offline, implemented "no_service" case for GetDriveConnectionStateFunction. could you take a look? Thanks.
7 years, 10 months ago (2013-02-12 05:50:18 UTC) #1
yoshiki
lgtm, thanks!
7 years, 10 months ago (2013-02-12 06:01:24 UTC) #2
Haruki Sato
Hashimoto-san, could you OWNER review for chrome/browser/chromeos/extensions/ ? Thanks.
7 years, 10 months ago (2013-02-12 06:04:46 UTC) #3
hashimoto
lgtm with a nit https://codereview.chromium.org/12221132/diff/1001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/12221132/diff/1001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode3107 chrome/browser/chromeos/extensions/file_browser_private_api.cc:3107: reasons->AppendString(kDriveConnectionReasonNoService); nit: Shouldn't we include ...
7 years, 10 months ago (2013-02-12 06:12:29 UTC) #4
yoshiki
sorry, please fix a nit. https://codereview.chromium.org/12221132/diff/7001/chrome/browser/resources/file_manager/js/file_manager.js File chrome/browser/resources/file_manager/js/file_manager.js (right): https://codereview.chromium.org/12221132/diff/7001/chrome/browser/resources/file_manager/js/file_manager.js#newcode131 chrome/browser/resources/file_manager/js/file_manager.js:131: NO_SERVICE: 'no_service', // Drive ...
7 years, 10 months ago (2013-02-12 06:29:15 UTC) #5
Haruki Sato
Fixed the commented issues. Thank you for the review! https://codereview.chromium.org/12221132/diff/1001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/12221132/diff/1001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode3107 chrome/browser/chromeos/extensions/file_browser_private_api.cc:3107: ...
7 years, 10 months ago (2013-02-12 06:34:07 UTC) #6
hashimoto
One more request, thanks! https://codereview.chromium.org/12221132/diff/6002/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/12221132/diff/6002/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode3093 chrome/browser/chromeos/extensions/file_browser_private_api.cc:3093: if (net::NetworkChangeNotifier::IsOffline()) nit: It seems ...
7 years, 10 months ago (2013-02-12 06:42:05 UTC) #7
Haruki Sato
https://codereview.chromium.org/12221132/diff/6002/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): https://codereview.chromium.org/12221132/diff/6002/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode3093 chrome/browser/chromeos/extensions/file_browser_private_api.cc:3093: if (net::NetworkChangeNotifier::IsOffline()) On 2013/02/12 06:42:05, hashimoto wrote: > nit: ...
7 years, 10 months ago (2013-02-12 07:28:49 UTC) #8
hashimoto
lgtm, thanks
7 years, 10 months ago (2013-02-12 07:42:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12221132/11001
7 years, 10 months ago (2013-02-12 07:44:46 UTC) #10
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98588
7 years, 10 months ago (2013-02-12 08:50:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12221132/11001
7 years, 10 months ago (2013-02-12 09:01:56 UTC) #12
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98631
7 years, 10 months ago (2013-02-12 11:21:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12221132/11001
7 years, 10 months ago (2013-02-12 13:17:51 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98746
7 years, 10 months ago (2013-02-12 15:43:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12221132/11001
7 years, 10 months ago (2013-02-13 04:36:22 UTC) #16
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 19:35:27 UTC) #17

Powered by Google App Engine
This is Rietveld 408576698