summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-14 21:11:46 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-14 21:11:46 +0000
commit74f778ee567a5e18ae6766416711b92fc6e7f39a (patch)
treec2da3cc66ebb5285d8ff3f210ebdb446eb61837f /net/tools
parenta80aea7ebc002065d8f24c54673c72cb61d47b07 (diff)
downloadchromium_src-74f778ee567a5e18ae6766416711b92fc6e7f39a.zip
chromium_src-74f778ee567a5e18ae6766416711b92fc6e7f39a.tar.gz
chromium_src-74f778ee567a5e18ae6766416711b92fc6e7f39a.tar.bz2
Move UTF16ToASCII, remove WideToASCII.
This removes WideToASCII and changes all callers to use UTF16ToASCII instead. Moves UTF16ToASCII from base/strings/string_util.h to base/strings/utf_string_conversions.h and into the base namespace. Convert a few related string_util functions to take a StringPiece16 instead of a string16. Remove IsStringASCII(std::wstring) which was unused. Updates callers' includes and namespace usage accordingly. TBR=sky Review URL: https://codereview.chromium.org/176843022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r--net/tools/gdig/gdig.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tools/gdig/gdig.cc b/net/tools/gdig/gdig.cc
index 2ab8fa30..2dd165e 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