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

Unified Diff: base/command_line.h

Issue 602253006: base::CommandLine: Replace use of wstring with string16. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commandline-test-hardcode
Patch Set: Created 6 years, 3 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 | « no previous file | base/command_line.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/command_line.h
diff --git a/base/command_line.h b/base/command_line.h
index fd06e61c774ce0c13a2ef03817a5a8d7ee0561dc..84bca28b93c0099e42fa677630ebc4c2ba325663 100644
--- a/base/command_line.h
+++ b/base/command_line.h
@@ -21,6 +21,7 @@
#include <vector>
#include "base/base_export.h"
+#include "base/strings/string16.h"
#include "build/build_config.h"
namespace base {
@@ -31,7 +32,7 @@ class BASE_EXPORT CommandLine {
public:
#if defined(OS_WIN)
// The native command line string type.
- typedef std::wstring StringType;
+ typedef base::string16 StringType;
#elif defined(OS_POSIX)
typedef std::string StringType;
#endif
@@ -87,7 +88,7 @@ class BASE_EXPORT CommandLine {
static bool InitializedForCurrentProcess();
#if defined(OS_WIN)
- static CommandLine FromString(const std::wstring& command_line);
+ static CommandLine FromString(const base::string16& command_line);
#endif
// Initialize from an argv vector.
@@ -162,7 +163,7 @@ class BASE_EXPORT CommandLine {
#if defined(OS_WIN)
// Initialize by parsing the given command line string.
// The program name is assumed to be the first item in the string.
- void ParseFromString(const std::wstring& command_line);
+ void ParseFromString(const base::string16& command_line);
#endif
private:
« no previous file with comments | « no previous file | base/command_line.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698