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

Issue 427303004: Fix various bits of error-handling in NSSDecryptor. (Closed)

Created:
6 years, 4 months ago by davidben
Modified:
6 years, 4 months ago
Reviewers:
Ilya Sherman, wtc
CC:
chromium-reviews, tfarina, gab
Project:
chromium
Visibility:
Public.

Description

Fix various bits of error-handling in NSSDecryptor. String may be empty. Base64-decode may fail. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287851

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : isherman comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M chrome/utility/importer/firefox_importer_unittest.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/utility/importer/nss_decryptor.cc View 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
davidben
6 years, 4 months ago (2014-08-01 22:06:49 UTC) #1
gab
Looks okay, but I'll defer to Ilya as I really know nothing about NSS. Cheers, ...
6 years, 4 months ago (2014-08-04 14:57:41 UTC) #2
Ilya Sherman
I also know very little about NSS, but these changes seem reasonable. Is it possible ...
6 years, 4 months ago (2014-08-04 21:35:37 UTC) #3
gab
Hmm.. Who knows NSS then? We should find someone and add a file-specific owner here. ...
6 years, 4 months ago (2014-08-04 22:18:22 UTC) #4
davidben
wtc, rsleevi, and I are familiar with NSS to varying degrees (them more than me). ...
6 years, 4 months ago (2014-08-04 22:44:41 UTC) #5
Ilya Sherman
On 2014/08/04 22:44:41, David Benjamin wrote: > I can drop in some unit tests perhaps... ...
6 years, 4 months ago (2014-08-04 22:51:03 UTC) #6
wtc
Patch set 1 LGTM. (David, you probably should consider this as a drive-by review.)
6 years, 4 months ago (2014-08-04 23:40:56 UTC) #7
davidben
Added tests
6 years, 4 months ago (2014-08-05 23:55:01 UTC) #8
Ilya Sherman
LGTM % a nit. Thanks :) https://codereview.chromium.org/427303004/diff/20001/chrome/utility/importer/firefox_importer_unittest.cc File chrome/utility/importer/firefox_importer_unittest.cc (right): https://codereview.chromium.org/427303004/diff/20001/chrome/utility/importer/firefox_importer_unittest.cc#newcode50 chrome/utility/importer/firefox_importer_unittest.cc:50: EXPECT_EQ(base::string16(), decryptor_proxy.Decrypt("")); nit: ...
6 years, 4 months ago (2014-08-06 01:29:16 UTC) #9
wtc
Patch set 2 LGTM.
6 years, 4 months ago (2014-08-06 17:43:31 UTC) #10
davidben
https://codereview.chromium.org/427303004/diff/20001/chrome/utility/importer/firefox_importer_unittest.cc File chrome/utility/importer/firefox_importer_unittest.cc (right): https://codereview.chromium.org/427303004/diff/20001/chrome/utility/importer/firefox_importer_unittest.cc#newcode50 chrome/utility/importer/firefox_importer_unittest.cc:50: EXPECT_EQ(base::string16(), decryptor_proxy.Decrypt("")); On 2014/08/06 01:29:16, Ilya Sherman wrote: > ...
6 years, 4 months ago (2014-08-06 17:47:59 UTC) #11
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 4 months ago (2014-08-06 17:48:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/427303004/40001
6 years, 4 months ago (2014-08-06 17:48:51 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 20:48:48 UTC) #14
Message was sent while issue was closed.
Change committed as 287851

Powered by Google App Engine
This is Rietveld 408576698