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

Unified Diff: shell/application_manager/network_fetcher.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
« no previous file with comments | « shell/application_manager/local_fetcher.cc ('k') | shell/task_runners.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/application_manager/network_fetcher.cc
diff --git a/shell/application_manager/network_fetcher.cc b/shell/application_manager/network_fetcher.cc
index 5d945ba773a03760029fe1ee0ff0eb637b8a8871..bbf9fb732342c37fc809bd8af7b85406a101eda5 100644
--- a/shell/application_manager/network_fetcher.cc
+++ b/shell/application_manager/network_fetcher.cc
@@ -63,7 +63,7 @@ mojo::URLRequestPtr GetRequest(const GURL& url, bool disable_cache) {
headers.push_back(architecture_header.Pass());
request->headers = headers.Pass();
- return request.Pass();
+ return request;
}
// Clone an URLResponse, except for the body.
@@ -79,7 +79,7 @@ mojo::URLResponsePtr CloneResponse(const mojo::URLResponsePtr& response) {
cloned->redirect_method = response->redirect_method;
cloned->redirect_url = response->redirect_url;
cloned->redirect_referrer = response->redirect_referrer;
- return cloned.Pass();
+ return cloned;
}
// This class is self owned and will delete itself after having tried to update
« no previous file with comments | « shell/application_manager/local_fetcher.cc ('k') | shell/task_runners.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698