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

Unified Diff: device/u2f/u2f_register.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_register.h ('k') | device/u2f/u2f_register_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/u2f/u2f_register.cc
diff --git a/device/u2f/u2f_register.cc b/device/u2f/u2f_register.cc
index 0f43e260378fda6e2436d82c23cfef6b268f5ea9..babfe9899f1a3ab26043411c758bf4682cccce1b 100644
--- a/device/u2f/u2f_register.cc
+++ b/device/u2f/u2f_register.cc
@@ -38,7 +38,7 @@ void U2fRegister::TryDevice() {
}
void U2fRegister::OnTryDevice(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_register.h ('k') | device/u2f/u2f_register_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698