Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / password_manager / login_database_posix.cc
blob3b5323465380135c4727b9cb88075742fd672033
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.
5 #include "chrome/browser/password_manager/login_database.h"
7 #include "base/strings/utf_string_conversions.h"
9 // TODO: Actually encrypt passwords on Linux.
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;
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;