login_database_mac.cc revision c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c
1// Copyright 2014 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 "components/password_manager/core/browser/login_database.h" 6 7// On the Mac, the LoginDatabase nulls out passwords, so that we can use the 8// rest of the database as a suplemental storage system to complement Keychain, 9// providing storage of fields Keychain doesn't allow. 10 11namespace password_manager { 12 13LoginDatabase::EncryptionResult LoginDatabase::EncryptedString( 14 const base::string16& plain_text, 15 std::string* cipher_text) const { 16 *cipher_text = std::string(); 17 return ENCRYPTION_RESULT_SUCCESS; 18} 19 20LoginDatabase::EncryptionResult LoginDatabase::DecryptedString( 21 const std::string& cipher_text, 22 base::string16* plain_text) const { 23 *plain_text = base::string16(); 24 return ENCRYPTION_RESULT_SUCCESS; 25} 26 27} // namespace password_manager 28