Rename CommandLine::GetCommandLineString().
Fix string hackery in net/tools/dump_cache/dump_cache.cc
Fix const casts in chrome/installer/util/product.cc and base/process_util_win.cc.
BUG=73195
TEST=none
Review URL: http://codereview.chromium.org/7386002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93165 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/about_flags_unittest.cc b/chrome/browser/about_flags_unittest.cc
index 21a85cb7..180e46f 100644
--- a/chrome/browser/about_flags_unittest.cc
+++ b/chrome/browser/about_flags_unittest.cc
@@ -250,8 +250,7 @@
// Convert the flags to switches.
ConvertFlagsToSwitches(&prefs_, &command_line);
EXPECT_TRUE(command_line.HasSwitch(kSwitch1));
- EXPECT_EQ(std::string(""),
- command_line.GetSwitchValueASCII(kSwitch1));
+ EXPECT_EQ(std::string(""), command_line.GetSwitchValueASCII(kSwitch1));
EXPECT_TRUE(command_line.HasSwitch(kSwitch2));
EXPECT_EQ(std::string(kValueForSwitch2),
command_line.GetSwitchValueASCII(kSwitch2));
@@ -262,11 +261,11 @@
std::string("=");
#if defined(OS_WIN)
EXPECT_EQ(std::wstring::npos,
- command_line.command_line_string().find(
+ command_line.GetCommandLineString().find(
ASCIIToWide(switch1_with_equals)));
#else
EXPECT_EQ(std::string::npos,
- command_line.command_line_string().find(switch1_with_equals));
+ command_line.GetCommandLineString().find(switch1_with_equals));
#endif
// And confirm there is a '=' for switches with values.
@@ -275,11 +274,11 @@
std::string("=");
#if defined(OS_WIN)
EXPECT_NE(std::wstring::npos,
- command_line.command_line_string().find(
+ command_line.GetCommandLineString().find(
ASCIIToWide(switch2_with_equals)));
#else
EXPECT_NE(std::string::npos,
- command_line.command_line_string().find(switch2_with_equals));
+ command_line.GetCommandLineString().find(switch2_with_equals));
#endif
// And it should persist