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

Issue 7272022: Eliminate an extra allocation in encryptor_win when en/decrypting. (Closed)

Created:
9 years, 6 months ago by Ryan Sleevi
Modified:
9 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Eliminate an extra allocation in encryptor_win when en/decrypting. R=wtc BUG=none TEST=crypto_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91803

Patch Set 1 #

Patch Set 2 : CopyToString #

Total comments: 1

Patch Set 3 : Feedback #

Total comments: 1

Patch Set 4 : Feedback and checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -16 lines) Patch
M crypto/encryptor_win.cc View 1 2 3 2 chunks +23 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ryan Sleevi
wtc: PTAL. I kept the existing ->resize(0) style since that matched encryptor_mac.cc, but I'm perfectly ...
9 years, 6 months ago (2011-06-28 04:44:49 UTC) #1
wtc
http://codereview.chromium.org/7272022/diff/3001/crypto/encryptor_win.cc File crypto/encryptor_win.cc (right): http://codereview.chromium.org/7272022/diff/3001/crypto/encryptor_win.cc#newcode91 crypto/encryptor_win.cc:91: reinterpret_cast<BYTE*>(WriteInto(ciphertext, total_len+1)), Add spaces around '+'. It is safer ...
9 years, 5 months ago (2011-06-29 00:46:41 UTC) #2
Ryan Sleevi
wtc: PTAL. WriteInto is simply implemented in terms of string->reserve() + string->resize(), so in practice ...
9 years, 5 months ago (2011-07-01 06:20:42 UTC) #3
wtc
LGTM. http://codereview.chromium.org/7272022/diff/6001/crypto/encryptor_win.cc File crypto/encryptor_win.cc (right): http://codereview.chromium.org/7272022/diff/6001/crypto/encryptor_win.cc#newcode89 crypto/encryptor_win.cc:89: plaintext.copy(ciphertext_data, plaintext.size(), 0); Note: This comment also applies ...
9 years, 5 months ago (2011-07-07 01:03:12 UTC) #4
commit-bot: I haz the power
9 years, 5 months ago (2011-07-08 03:32:34 UTC) #5
Change committed as 91803

Powered by Google App Engine
This is Rietveld 408576698