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

Issue 405403002: Close FileOutputStream in finally block in WebAppAuthenticator class method. (Closed)

Created:
6 years, 5 months ago by wajahat
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Close FileOutputStream in finally block in WebAppAuthenticator class method. FileOutStream should be closed in finally block in writeKeyToFile() method, as closing in try{} will not close and release system resources when an exeption is thrown. Also, catch relavant exception instead of catching generic exception. BUG=None. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284735

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/WebappAuthenticator.java View 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
wajahat
PTAL!
6 years, 5 months ago (2014-07-22 08:12:51 UTC) #1
Yaron
lgtm
6 years, 5 months ago (2014-07-22 16:15:05 UTC) #2
wajahat
The CQ bit was checked by wajahat.s@samsung.com
6 years, 5 months ago (2014-07-22 16:15:36 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wajahat.s@samsung.com/405403002/1
6 years, 5 months ago (2014-07-22 16:16:22 UTC) #4
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 18:27:59 UTC) #5
Message was sent while issue was closed.
Change committed as 284735

Powered by Google App Engine
This is Rietveld 408576698