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

Unified Diff: ios/chrome/app/main_controller.mm

Issue 2751993003: Remove the DeferredInitializationRunner for MemoryMonitor (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/main_controller.mm
diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
index 86e67ba58b16b6633835ad0a6240be1d6d989e03..523334ce6bbc731379baccac4b67af6d3134ea26 100644
--- a/ios/chrome/app/main_controller.mm
+++ b/ios/chrome/app/main_controller.mm
@@ -1167,16 +1167,8 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
}
- (void)scheduleFreeMemoryMonitoring {
marq (ping after 24h) 2017/03/16 13:40:58 Maybe this shouldn't be a schedule.. task and inst
gambard 2017/03/17 08:57:46 Done.
- // TODO(crbug.com/649338): See if this method cannot call PostBlockingPoolTask
- // directly instead of enqueueing a block.
- [[DeferredInitializationRunner sharedInstance]
- enqueueBlockNamed:kMemoryMonitoring
- block:^{
- web::WebThread::PostBlockingPoolTask(
- FROM_HERE,
- base::Bind(
- &ios_internal::AsynchronousFreeMemoryMonitor));
- }];
+ web::WebThread::PostBlockingPoolTask(
+ FROM_HERE, base::Bind(&ios_internal::AsynchronousFreeMemoryMonitor));
}
- (void)scheduleLowPriorityStartupTasks {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698