Index: content/test/browser_test_utils_browsertest.cc |
diff --git a/content/test/browser_test_utils_browsertest.cc b/content/test/browser_test_utils_browsertest.cc |
index de64115f602a4bcea73f8ede1160cdad7f0c3d54..15f65aee3c4752f5af5ec61b6820a5f7fbe7d8ff 100644 |
--- a/content/test/browser_test_utils_browsertest.cc |
+++ b/content/test/browser_test_utils_browsertest.cc |
@@ -70,9 +70,8 @@ IN_PROC_BROWSER_TEST_F(CrossSiteRedirectorBrowserTest, |
// hostname supplied in the URL and rewrite the URL. Build the |
// expected URL to ensure navigation was properly redirected. |
GURL::Replacements replace_host; |
- std::string foo_com("foo.com"); |
GURL expected_url(embedded_test_server()->GetURL("/title2.html")); |
- replace_host.SetHostStr(foo_com); |
+ replace_host.SetHostStr("foo.com"); |
expected_url = expected_url.ReplaceComponents(replace_host); |
EXPECT_EQ(expected_url, observer.navigation_url()); |