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

Unified Diff: mojo/shell/package_manager/content_handler_unittest.cc

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: mojo/shell/package_manager/content_handler_unittest.cc
diff --git a/mojo/shell/package_manager/content_handler_unittest.cc b/mojo/shell/package_manager/content_handler_unittest.cc
index 89d7c835d6268e5677e97993bc5b9d913b95a379..1beac34d86fe36a1d11a2f404108d38b9dc2625e 100644
--- a/mojo/shell/package_manager/content_handler_unittest.cc
+++ b/mojo/shell/package_manager/content_handler_unittest.cc
@@ -146,7 +146,7 @@ class TestPackageManagerImpl : public PackageManagerImpl {
void FetchRequest(
URLRequestPtr request,
const Fetcher::FetchCallback& loader_callback) override {
- new TestFetcher(loader_callback, GURL(request->url), mime_type_);
+ new TestFetcher(loader_callback, GURL(request->url.get()), mime_type_);
}
private:

Powered by Google App Engine
This is Rietveld 408576698