Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: chrome/browser/password_manager/login_database_posix.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/password_manager/login_database.h" 5 #include "chrome/browser/password_manager/login_database.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 8
9 // TODO: Actually encrypt passwords on Linux. 9 // TODO: Actually encrypt passwords on Linux.
10 10
11 bool LoginDatabase::EncryptedString(const string16& plain_text, 11 bool LoginDatabase::EncryptedString(const string16& plain_text,
12 std::string* cipher_text) const { 12 std::string* cipher_text) const {
13 *cipher_text = UTF16ToUTF8(plain_text); 13 *cipher_text = UTF16ToUTF8(plain_text);
14 return true; 14 return true;
15 } 15 }
16 16
17 bool LoginDatabase::DecryptedString(const std::string& cipher_text, 17 bool LoginDatabase::DecryptedString(const std::string& cipher_text,
18 string16* plain_text) const { 18 string16* plain_text) const {
19 *plain_text = UTF8ToUTF16(cipher_text); 19 *plain_text = UTF8ToUTF16(cipher_text);
20 return true; 20 return true;
21 } 21 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/login_database.cc ('k') | chrome/browser/password_manager/login_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698