Index: components/autofill/core/browser/webdata/system_encryptor.cc |
diff --git a/components/autofill/core/browser/webdata/system_encryptor.cc b/components/autofill/core/browser/webdata/system_encryptor.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7b16c08952921df399a2e7deef26503b8fdd6bc7 |
--- /dev/null |
+++ b/components/autofill/core/browser/webdata/system_encryptor.cc |
@@ -0,0 +1,21 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/autofill/core/browser/webdata/system_encryptor.h" |
+ |
+#include "components/os_crypt/os_crypt.h" |
+ |
+namespace autofill { |
+ |
+bool SystemEncryptor::EncryptString16(const base::string16& plaintext, |
+ std::string* ciphertext) const { |
+ return ::OSCrypt::EncryptString16(plaintext, ciphertext); |
+} |
+ |
+bool SystemEncryptor::DecryptString16(const std::string& ciphertext, |
+ base::string16* plaintext) const { |
+ return ::OSCrypt::DecryptString16(ciphertext, plaintext); |
+} |
+ |
+} // namespace autofill |