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

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

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 "base/string_util.h"
6 #include "chrome/browser/password_manager/login_database.h" 5 #include "chrome/browser/password_manager/login_database.h"
7 6
7 #include "base/utf_string_conversions.h"
8
8 // TODO: Actually encrypt passwords on Linux. 9 // TODO: Actually encrypt passwords on Linux.
9 10
10 std::string LoginDatabase::EncryptedString(const string16& plain_text) 11 std::string LoginDatabase::EncryptedString(const string16& plain_text)
11 const { 12 const {
12 return UTF16ToASCII(plain_text); 13 return UTF16ToUTF8(plain_text);
13 } 14 }
14 15
15 string16 LoginDatabase::DecryptedString(const std::string& cipher_text) 16 string16 LoginDatabase::DecryptedString(const std::string& cipher_text)
16 const { 17 const {
17 return ASCIIToUTF16(cipher_text); 18 return ASCIIToUTF16(cipher_text);
18 } 19 }
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.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