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

Unified Diff: content/renderer/history_controller.cc

Issue 2532423002: Replace unique_ptr.reset(other_unique_ptr.release() with std::move() (Closed)
Patch Set: I edited my AUTHOR registeration in dictionary order. Created 4 years 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/history_controller.cc
diff --git a/content/renderer/history_controller.cc b/content/renderer/history_controller.cc
index 0618765f8c8ff7bc0f7e8656f7512748e6c57efb..6369f09354e7ad7c2191745b3c781ff8f074e9cb 100644
--- a/content/renderer/history_controller.cc
+++ b/content/renderer/history_controller.cc
@@ -253,7 +253,7 @@ void HistoryController::UpdateForCommit(RenderFrameImpl* frame,
if (frame->IsMainFrame() ||
current_entry_->root().itemSequenceNumber() ==
provisional_entry_->root().itemSequenceNumber()) {
- current_entry_.reset(provisional_entry_.release());
+ current_entry_ = std::move(provisional_entry_);
}
// We're guaranteed to have a current entry now.
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698