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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_db.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_db.cc
diff --git a/services/url_response_disk_cache/url_response_disk_cache_db.cc b/services/url_response_disk_cache/url_response_disk_cache_db.cc
index f7eb587a0411b890aed49108c34e4a22e01e6557..580f73bb54efa32dcbbb301457e12eeb775542f0 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_db.cc
+++ b/services/url_response_disk_cache/url_response_disk_cache_db.cc
@@ -190,7 +190,7 @@ CacheEntryPtr URLResponseDiskCacheDB::Get(CacheKeyPtr key) {
DCHECK(status.ok());
CacheEntryPtr result;
Deserialize(entry_string, &result);
- return result.Pass();
+ return result;
}
void URLResponseDiskCacheDB::PutNew(const std::string& request_origin,
@@ -225,7 +225,7 @@ CacheEntryPtr URLResponseDiskCacheDB::GetNewest(
}
}
}
- return result.Pass();
+ return result;
}
void URLResponseDiskCacheDB::Delete(CacheKeyPtr key) {
« no previous file with comments | « services/prediction/dictionary_service.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_db_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698