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

Unified Diff: net/http/http_cache.h

Issue 2500693002: Replace unique_ptr.reset with std::move in /net (Closed)
Patch Set: fix Created 4 years, 1 month 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 | « no previous file | net/quic/core/quic_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 00b3954fb083db79c6b9becd6e2825258f99b6db..8893884ce58fbcb4df8cd94c30fe2a8e7c808ea0 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -181,7 +181,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
// Get/Set the cache's clock. These are public only for testing.
void SetClockForTesting(std::unique_ptr<base::Clock> clock) {
- clock_.reset(clock.release());
+ clock_ = std::move(clock);
}
base::Clock* clock() const { return clock_.get(); }
« no previous file with comments | « no previous file | net/quic/core/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698