Index: content/browser/renderer_host/render_process_host_browsertest.cc |
diff --git a/content/browser/renderer_host/render_process_host_browsertest.cc b/content/browser/renderer_host/render_process_host_browsertest.cc |
index 18a187afe04303798bcb1b1fa6a1172acd4b3d26..e63e8107501eb5bebb70a951550ba390b5806c8b 100644 |
--- a/content/browser/renderer_host/render_process_host_browsertest.cc |
+++ b/content/browser/renderer_host/render_process_host_browsertest.cc |
@@ -103,8 +103,7 @@ IN_PROC_BROWSER_TEST_F(RenderProcessHostTest, |
// Navigate to a different page. |
GURL::Replacements replace_host; |
- std::string host_str("localhost"); // Must stay in scope with replace_host. |
- replace_host.SetHostStr(host_str); |
+ replace_host.SetHostStr("localhost"); |
GURL another_url = embedded_test_server()->GetURL("/simple_page.html"); |
another_url = another_url.ReplaceComponents(replace_host); |
NavigateToURL(CreateBrowser(), another_url); |