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

Unified Diff: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.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: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc
diff --git a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc
index 5b428547aaafde0bc05a18cb00f8bfc561df3349..5236b966884b2ac30e632d17ac71bb0fd366a39e 100644
--- a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc
+++ b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc
@@ -48,8 +48,7 @@ class ExtensionCloudPrintPrivateApiTest : public ExtensionApiTest {
// Replace the host with 'www.cloudprintapp.com' so it matches the cloud
// print app's extent.
GURL::Replacements replace_host;
- std::string host_str("www.cloudprintapp.com");
- replace_host.SetHostStr(host_str);
+ replace_host.SetHostStr("www.cloudprintapp.com");
return url.ReplaceComponents(replace_host);
}
};

Powered by Google App Engine
This is Rietveld 408576698