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

Unified Diff: components/browser_sync/browser/profile_sync_service.cc

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 months 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
Index: components/browser_sync/browser/profile_sync_service.cc
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index 57d68214bbf7584b86813cb0f894607f906a5b4b..57f500b36915c0ab746adae3d42c5fca6a4865db 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -376,8 +376,9 @@ void ProfileSyncService::Initialize() {
AddObserver(sync_error_controller_.get());
#endif
- memory_pressure_listener_.reset(new base::MemoryPressureListener(base::Bind(
- &ProfileSyncService::OnMemoryPressure, weak_factory_.GetWeakPtr())));
+ memory_pressure_listener_.reset(base::MemoryPressureListener::Create(
+ base::Bind(&ProfileSyncService::OnMemoryPressure,
+ weak_factory_.GetWeakPtr())));
startup_controller_->Reset(GetRegisteredDataTypes());
startup_controller_->TryStart();
}

Powered by Google App Engine
This is Rietveld 408576698