Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / password_manager / login_database_posix.cc
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/password_manager/login_database.h"
6
7 #include "base/strings/utf_string_conversions.h"
8
9 // TODO: Actually encrypt passwords on Linux.
10
11 LoginDatabase::EncryptionResult LoginDatabase::EncryptedString(
12     const base::string16& plain_text,
13     std::string* cipher_text) const {
14   *cipher_text = base::UTF16ToUTF8(plain_text);
15   return ENCRYPTION_RESULT_SUCCESS;
16 }
17
18 LoginDatabase::EncryptionResult LoginDatabase::DecryptedString(
19     const std::string& cipher_text,
20     base::string16* plain_text) const {
21   *plain_text = base::UTF8ToUTF16(cipher_text);
22   return ENCRYPTION_RESULT_SUCCESS;
23 }