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

Unified Diff: chrome/browser/password_manager/password_manager_util_win.cc

Issue 299363002: Cleanup: Get rid of unneeded base::UTF16ToWide() conversions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 6 years, 7 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
« no previous file with comments | « chrome/browser/memory_details_win.cc ('k') | components/breakpad/app/breakpad_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_manager_util_win.cc
diff --git a/chrome/browser/password_manager/password_manager_util_win.cc b/chrome/browser/password_manager/password_manager_util_win.cc
index bee9733c32562c84b3b781b356161b59fa714bc0..556dd05e8b3ab4b25b612f22caa9b709b37d7379 100644
--- a/chrome/browser/password_manager/password_manager_util_win.cc
+++ b/chrome/browser/password_manager/password_manager_util_win.cc
@@ -156,11 +156,9 @@ bool AuthenticateUser(gfx::NativeWindow window) {
WCHAR displayname[CREDUI_MAX_USERNAME_LENGTH+1] = {};
WCHAR password[CREDUI_MAX_PASSWORD_LENGTH+1] = {};
DWORD username_length = CREDUI_MAX_USERNAME_LENGTH;
- std::wstring product_name =
- base::UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
- std::wstring password_prompt =
- base::UTF16ToWide(l10n_util::GetStringUTF16(
- IDS_PASSWORDS_PAGE_AUTHENTICATION_PROMPT));
+ base::string16 product_name = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME);
+ base::string16 password_prompt =
+ l10n_util::GetStringUTF16(IDS_PASSWORDS_PAGE_AUTHENTICATION_PROMPT);
HANDLE handle = INVALID_HANDLE_VALUE;
int tries = 0;
bool use_displayname = false;
« no previous file with comments | « chrome/browser/memory_details_win.cc ('k') | components/breakpad/app/breakpad_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698