summaryrefslogtreecommitdiffstats
path: root/sync/util
diff options
context:
space:
mode:
authorBrett Wilson <brettw@chromium.org>2015-07-07 16:38:09 -0700
committerBrett Wilson <brettw@chromium.org>2015-07-07 23:39:16 +0000
commite3c4d1a1228e00b190ad743a83f88a2266f45238 (patch)
tree3923b42b43c9b7a8a689d0468688b30bf9ea8f83 /sync/util
parent1c33a26e56880fbf058fd796aa004e097e07b691 (diff)
downloadchromium_src-e3c4d1a1228e00b190ad743a83f88a2266f45238.zip
chromium_src-e3c4d1a1228e00b190ad743a83f88a2266f45238.tar.gz
chromium_src-e3c4d1a1228e00b190ad743a83f88a2266f45238.tar.bz2
Move WriteInto to base namespace.
Update all callers. De-inlines the template. For some reason touching the namespaces started givin errors about DCHECK not being defined. Indeed, this header does not include logging.h. Rather than include logging in this very common header, it seems preferable to move the implementation to the .cc file. This removes support for the wstring variant and updates the callers that used it. R=ben@chromium.org, ben TBR=jschuh (sandbox_win.cc) NOPRESUBMIT=true (this patch touches code using legacy wstrings) Review URL: https://codereview.chromium.org/1223983002. Cr-Commit-Position: refs/heads/master@{#337703}
Diffstat (limited to 'sync/util')
-rw-r--r--sync/util/nigori.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/util/nigori.cc b/sync/util/nigori.cc
index e74d81a91..7a9702d 100644
--- a/sync/util/nigori.cc
+++ b/sync/util/nigori.cc
@@ -160,7 +160,7 @@ bool Nigori::Encrypt(const std::string& value, std::string* encrypted) const {
return false;
std::string iv;
- crypto::RandBytes(WriteInto(&iv, kIvSize + 1), kIvSize);
+ crypto::RandBytes(base::WriteInto(&iv, kIvSize + 1), kIvSize);
Encryptor encryptor;
if (!encryptor.Init(encryption_key_.get(), Encryptor::CBC, iv))