Commit 2975deec authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

ios: Remove application.backgroundTimeRemaining.

Remove this for a milestone to see if hangs go down.

Bug: 1150659
Change-Id: Ief95b225bceaeb9a565149f7a9ac4260e6b3cd99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2547328Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829024}
parent 2e342844
...@@ -46,12 +46,6 @@ void ScopedCriticalAction::Core::StartBackgroundTask(scoped_refptr<Core> core, ...@@ -46,12 +46,6 @@ void ScopedCriticalAction::Core::StartBackgroundTask(scoped_refptr<Core> core,
return; return;
} }
NSTimeInterval time = application.backgroundTimeRemaining;
if (time != DBL_MAX && time > 0) {
UMA_HISTOGRAM_MEDIUM_TIMES("IOS.CriticalActionBackgroundTimeRemaining",
base::TimeDelta::FromSeconds(time));
}
AutoLock lock_scope(core->background_task_id_lock_); AutoLock lock_scope(core->background_task_id_lock_);
NSString* task_string = NSString* task_string =
!task_name.empty() ? base::SysUTF8ToNSString(task_name) : nil; !task_name.empty() ? base::SysUTF8ToNSString(task_name) : nil;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment