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

Unified Diff: components/error_page/renderer/net_error_helper_core.h

Issue 2490413002: Replace unique_ptr.reset with std::move() in error_page/renderer (Closed)
Patch Set: Replace unique_ptr.reset with std::move() in error_page/renderer 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 | components/error_page/renderer/net_error_helper_core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/error_page/renderer/net_error_helper_core.h
diff --git a/components/error_page/renderer/net_error_helper_core.h b/components/error_page/renderer/net_error_helper_core.h
index aeb45bc7d09be99b5b477b9c37f5929b78a7d8be..1551553e9ffeaf2c1ff0a13e1d2a15ba1ee2bf5b 100644
--- a/components/error_page/renderer/net_error_helper_core.h
+++ b/components/error_page/renderer/net_error_helper_core.h
@@ -195,7 +195,7 @@ class NetErrorHelperCore {
bool ShouldSuppressErrorPage(FrameType frame_type, const GURL& url);
void set_timer_for_testing(std::unique_ptr<base::Timer> timer) {
- auto_reload_timer_.reset(timer.release());
+ auto_reload_timer_ = std::move(timer);
}
// Execute the effect of pressing the specified button.
« no previous file with comments | « no previous file | components/error_page/renderer/net_error_helper_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698