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

Unified Diff: components/metrics/metrics_log_manager.cc

Issue 2521063004: Replace ptr.reset with std::move in src/components (Closed)
Patch Set: 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 | « components/leveldb_proto/proto_database_impl.h ('k') | components/nacl/loader/nacl_ipc_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_log_manager.cc
diff --git a/components/metrics/metrics_log_manager.cc b/components/metrics/metrics_log_manager.cc
index d06b5ae0adaa6089bc82b98431433d2e724c2f40..763636b16b0a787658d92aedd0d7b54aeaac2158 100644
--- a/components/metrics/metrics_log_manager.cc
+++ b/components/metrics/metrics_log_manager.cc
@@ -94,12 +94,12 @@ void MetricsLogManager::DiscardCurrentLog() {
void MetricsLogManager::PauseCurrentLog() {
DCHECK(!paused_log_.get());
- paused_log_.reset(current_log_.release());
+ paused_log_ = std::move(current_log_);
}
void MetricsLogManager::ResumePausedLog() {
DCHECK(!current_log_.get());
- current_log_.reset(paused_log_.release());
+ current_log_ = std::move(paused_log_);
}
void MetricsLogManager::StoreLog(const std::string& log_data,
« no previous file with comments | « components/leveldb_proto/proto_database_impl.h ('k') | components/nacl/loader/nacl_ipc_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698