login_database_mac.cc revision c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c
1f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// Copyright 2014 The Chromium Authors. All rights reserved. 2f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// Use of this source code is governed by a BSD-style license that can be 3f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// found in the LICENSE file. 4f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 5f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org#include "components/password_manager/core/browser/login_database.h" 6f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 7f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// On the Mac, the LoginDatabase nulls out passwords, so that we can use the 8f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// rest of the database as a suplemental storage system to complement Keychain, 9f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org// providing storage of fields Keychain doesn't allow. 10f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 11f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgnamespace password_manager { 12f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 13f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgLoginDatabase::EncryptionResult LoginDatabase::EncryptedString( 14f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const base::string16& plain_text, 15f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org std::string* cipher_text) const { 16f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *cipher_text = std::string(); 17f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org return ENCRYPTION_RESULT_SUCCESS; 18f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org} 19f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 20f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.orgLoginDatabase::EncryptionResult LoginDatabase::DecryptedString( 21f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org const std::string& cipher_text, 22f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org base::string16* plain_text) const { 23f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org *plain_text = base::string16(); 24f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org return ENCRYPTION_RESULT_SUCCESS; 25f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org} 26f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org 27f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org} // namespace password_manager 28f2ba7591b1407a7ee9209f842c50696914dc2dedkbr@chromium.org