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

Unified Diff: net/tools/gdig/gdig.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « net/proxy/proxy_resolver_winhttp.cc ('k') | remoting/host/setup/me2me_native_messaging_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/gdig/gdig.cc
diff --git a/net/tools/gdig/gdig.cc b/net/tools/gdig/gdig.cc
index 2ab8fa30f213b641de54478794250660db579936..2dd165e28b0cac0b75b455aee4f66d463f8b00ca 100644
--- a/net/tools/gdig/gdig.cc
+++ b/net/tools/gdig/gdig.cc
@@ -16,6 +16,7 @@
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
+#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "net/base/address_list.h"
#include "net/base/ip_endpoint.h"
@@ -361,7 +362,7 @@ bool GDig::ParseCommandLine(int argc, const char* argv[]) {
ReplayLogEntry entry;
entry.start_time = base::TimeDelta();
#if defined(OS_WIN)
- entry.domain_name = WideToASCII(parsed_command_line.GetArgs()[0]);
+ entry.domain_name = base::UTF16ToASCII(parsed_command_line.GetArgs()[0]);
#else
entry.domain_name = parsed_command_line.GetArgs()[0];
#endif
« no previous file with comments | « net/proxy/proxy_resolver_winhttp.cc ('k') | remoting/host/setup/me2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698