diff --git a/atom/browser/atom_browser_main_parts.cc b/atom/browser/atom_browser_main_parts.cc index 6e217f0cdcd4..581cd39cd3f8 100644 --- a/atom/browser/atom_browser_main_parts.cc +++ b/atom/browser/atom_browser_main_parts.cc @@ -73,7 +73,6 @@ AtomBrowserMainParts::AtomBrowserMainParts( browser_(new Browser), node_bindings_(NodeBindings::Create(NodeBindings::BROWSER)), atom_bindings_(new AtomBindings(uv_default_loop())), - gc_timer_(true, true), main_function_params_(params) { DCHECK(!self_) << "Cannot have two AtomBrowserMainParts"; self_ = this; diff --git a/atom/browser/atom_browser_main_parts.h b/atom/browser/atom_browser_main_parts.h index 89d987b45480..67334edf4f5e 100644 --- a/atom/browser/atom_browser_main_parts.h +++ b/atom/browser/atom_browser_main_parts.h @@ -125,7 +125,7 @@ class AtomBrowserMainParts : public brightray::BrowserMainParts { std::unique_ptr net_log_; std::unique_ptr icon_manager_; - base::Timer gc_timer_; + base::RepeatingTimer gc_timer_; // List of callbacks should be executed before destroying JS env. std::list destructors_;