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

Unified Diff: device/u2f/u2f_sign.cc

Issue 2839043002: Pass u2f message callback vector as a const reference (Closed)
Patch Set: Change response callback to const ref Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/u2f/u2f_sign.h ('k') | device/u2f/u2f_sign_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/u2f/u2f_sign.cc
diff --git a/device/u2f/u2f_sign.cc b/device/u2f/u2f_sign.cc
index d537c4894e94f7aa05720ec220f0be2f5f0e81da..a1f5b7d3d5ae98edd49eb3b09e3a53a8962806d5 100644
--- a/device/u2f/u2f_sign.cc
+++ b/device/u2f/u2f_sign.cc
@@ -52,7 +52,7 @@ void U2fSign::TryDevice() {
void U2fSign::OnTryDevice(std::vector<std::vector<uint8_t>>::const_iterator it,
U2fReturnCode return_code,
- std::vector<uint8_t> response_data) {
+ const std::vector<uint8_t>& response_data) {
switch (return_code) {
case U2fReturnCode::SUCCESS:
state_ = State::COMPLETE;
« no previous file with comments | « device/u2f/u2f_sign.h ('k') | device/u2f/u2f_sign_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698