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

Unified Diff: content/browser/web_contents/opened_by_dom_browsertest.cc

Issue 889463003: GURL::Replacements methods accept a StringPiece instead of std::string&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (fixed some merge conflicts). Created 5 years, 10 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
Index: content/browser/web_contents/opened_by_dom_browsertest.cc
diff --git a/content/browser/web_contents/opened_by_dom_browsertest.cc b/content/browser/web_contents/opened_by_dom_browsertest.cc
index 9a20a94c286a126dc7963a9fd54382b13efde7ce..dab6eb8d3180845a63c920b7e0003dd9e724d31d 100644
--- a/content/browser/web_contents/opened_by_dom_browsertest.cc
+++ b/content/browser/web_contents/opened_by_dom_browsertest.cc
@@ -123,8 +123,7 @@ IN_PROC_BROWSER_TEST_F(OpenedByDOMTest, DISABLED_CrossProcessPopup) {
GURL url2 = test_server()->GetURL("files/site_isolation/blank.html?2");
GURL::Replacements replace_host;
- std::string foo_com("foo.com");
- replace_host.SetHostStr(foo_com);
+ replace_host.SetHostStr("foo.com");
url2 = url2.ReplaceComponents(replace_host);
GURL url3 = test_server()->GetURL("files/site_isolation/blank.html?3");
« no previous file with comments | « content/browser/shared_worker/worker_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698