perf: remove GC timer that fired once per minute. (#25958)
This commit is contained in:
parent
12e3c85081
commit
ae5de3d9c5
2 changed files with 0 additions and 7 deletions
|
@ -405,11 +405,6 @@ void ElectronBrowserMainParts::PreMainMessageLoopRun() {
|
|||
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
|
||||
#endif
|
||||
|
||||
// Start idle gc.
|
||||
gc_timer_.Start(FROM_HERE, base::TimeDelta::FromMinutes(1),
|
||||
base::BindRepeating(&v8::Isolate::LowMemoryNotification,
|
||||
base::Unretained(js_env_->isolate())));
|
||||
|
||||
content::WebUIControllerFactory::RegisterFactory(
|
||||
ElectronWebUIControllerFactory::GetInstance());
|
||||
|
||||
|
|
|
@ -158,8 +158,6 @@ class ElectronBrowserMainParts : public content::BrowserMainParts {
|
|||
std::unique_ptr<ElectronExtensionsBrowserClient> extensions_browser_client_;
|
||||
#endif
|
||||
|
||||
base::RepeatingTimer gc_timer_;
|
||||
|
||||
// List of callbacks should be executed before destroying JS env.
|
||||
std::list<base::OnceClosure> destructors_;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue