Index: chromeos/cryptohome/cryptohome_parameters.cc |
diff --git a/chromeos/cryptohome/cryptohome_parameters.cc b/chromeos/cryptohome/cryptohome_parameters.cc |
index d784d4e22265c68d7a24ddd0a014f591400dc035..5b3ac4d4372cab188879a70c44222ed22e442f46 100644 |
--- a/chromeos/cryptohome/cryptohome_parameters.cc |
+++ b/chromeos/cryptohome/cryptohome_parameters.cc |
@@ -86,6 +86,17 @@ KeyDefinition::ProviderData::ProviderData(const ProviderData& other) |
bytes.reset(new std::string(*other.bytes)); |
} |
+KeyDefinition::ProviderData::ProviderData(const std::string& name, int64 number) |
+ : name(name), |
+ number(new int64(number)) { |
+} |
+ |
+KeyDefinition::ProviderData::ProviderData(const std::string& name, |
+ const std::string& bytes) |
+ : name(name), |
+ bytes(new std::string(bytes)) { |
+} |
+ |
void KeyDefinition::ProviderData::operator=(const ProviderData& other) { |
name = other.name; |
number.reset(other.number ? new int64(*other.number) : NULL); |