| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/api/networking_private/networking_cast_private_dele
gate.h" | 5 #include "extensions/browser/api/networking_private/networking_cast_private_dele
gate.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 NetworkingCastPrivateDelegate::Credentials::Credentials( | 13 NetworkingCastPrivateDelegate::Credentials::Credentials( |
| 14 const std::string& certificate, | 14 const std::string& certificate, |
| 15 const std::vector<std::string>& intermediate_certificates, | 15 const std::vector<std::string>& intermediate_certificates, |
| 16 const std::string& signed_data, | 16 const std::string& signed_data, |
| 17 const std::string& device_ssid, | 17 const std::string& device_ssid, |
| 18 const std::string& device_serial, | 18 const std::string& device_serial, |
| 19 const std::string& device_bssid, | 19 const std::string& device_bssid, |
| 20 const std::string& public_key, | 20 const std::string& public_key, |
| 21 const std::string& nonce) | 21 const std::string& nonce) |
| 22 : certificate_(certificate), | 22 : certificate_(certificate), |
| 23 intermediate_certificates_(intermediate_certificates), | 23 intermediate_certificates_(intermediate_certificates), |
| 24 signed_data_(signed_data), | 24 signed_data_(signed_data), |
| 25 device_bssid_(device_bssid), | 25 device_bssid_(device_bssid), |
| 26 public_key_(public_key) { | 26 public_key_(public_key) { |
| 27 std::vector<std::string> data_parts( | 27 unsigned_data_ = base::JoinString( |
| 28 {device_ssid, device_serial, device_bssid, public_key, nonce}); | 28 {device_ssid, device_serial, device_bssid, public_key, nonce}, ","); |
| 29 unsigned_data_ = base::JoinString(data_parts, ","); | |
| 30 } | 29 } |
| 31 | 30 |
| 32 NetworkingCastPrivateDelegate::Credentials::~Credentials() {} | 31 NetworkingCastPrivateDelegate::Credentials::~Credentials() {} |
| 33 | 32 |
| 34 } // namespace extensions | 33 } // namespace extensions |
| OLD | NEW |