Index: sync/util/cryptographer.cc |
diff --git a/sync/util/cryptographer.cc b/sync/util/cryptographer.cc |
index 41914656e48d2141b305333e10bcae13488400d1..0fe0b25a3c8922329eede2daa12bf0b1368a795c 100644 |
--- a/sync/util/cryptographer.cc |
+++ b/sync/util/cryptographer.cc |
@@ -187,7 +187,7 @@ bool Cryptographer::AddNonDefaultKey(const KeyParams& params) { |
} |
bool Cryptographer::AddKeyFromBootstrapToken( |
- const std::string restored_bootstrap_token) { |
+ const std::string& restored_bootstrap_token) { |
// Create the new Nigori and make it the default encryptor. |
std::string serialized_nigori_key = UnpackBootstrapToken( |
restored_bootstrap_token); |
@@ -361,7 +361,7 @@ std::string Cryptographer::GetDefaultNigoriKeyData() const { |
return key.SerializeAsString(); |
} |
-bool Cryptographer::ImportNigoriKey(const std::string serialized_nigori_key) { |
+bool Cryptographer::ImportNigoriKey(const std::string& serialized_nigori_key) { |
if (serialized_nigori_key.empty()) |
return false; |