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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_impl.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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: services/url_response_disk_cache/url_response_disk_cache_impl.cc
diff --git a/services/url_response_disk_cache/url_response_disk_cache_impl.cc b/services/url_response_disk_cache/url_response_disk_cache_impl.cc
index 7b104b7dc5502c9463976b004c436ba9eee6192a..8ec138b5703bb3897576a7c56e6e3f1defa7b84a 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_impl.cc
+++ b/services/url_response_disk_cache/url_response_disk_cache_impl.cc
@@ -85,7 +85,7 @@ Array<uint8_t> PathToArray(const base::FilePath& path) {
const std::string& string = path.value();
auto result = Array<uint8_t>::New(string.size());
memcpy(&result.front(), string.data(), string.size());
- return result.Pass();
+ return result;
}
// This method remove the query string of an url if one is present. It does
@@ -207,7 +207,7 @@ mojo::URLResponsePtr GetMinimalResponse(const std::string& url) {
mojo::URLResponsePtr response = mojo::URLResponse::New();
response->url = url;
response->status_code = 200;
- return response.Pass();
+ return response;
}
void RunMojoCallbackWithResponse(

Powered by Google App Engine
This is Rietveld 408576698