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

Unified Diff: chromeos/cryptohome/cryptohome_parameters.cc

Issue 554043003: cros: Create cryptohome keys for Easy sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 6 years, 3 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 | « chromeos/cryptohome/cryptohome_parameters.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chromeos/cryptohome/cryptohome_parameters.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698