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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/login_database_posix.cc
===================================================================
--- chrome/browser/password_manager/login_database_posix.cc (revision 54459)
+++ chrome/browser/password_manager/login_database_posix.cc (working copy)
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/string_util.h"
#include "chrome/browser/password_manager/login_database.h"
+#include "base/utf_string_conversions.h"
+
// TODO: Actually encrypt passwords on Linux.
std::string LoginDatabase::EncryptedString(const string16& plain_text)
const {
- return UTF16ToASCII(plain_text);
+ return UTF16ToUTF8(plain_text);
}
string16 LoginDatabase::DecryptedString(const std::string& cipher_text)
« 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