Commit f7d6e90e authored by Karolina Soltys's avatar Karolina Soltys Committed by Commit Bot

[scheduler] Removing an unnecessary ThreadUtils call.

This function is already guaranteed to run on the UI thread (2 function
calls above there's an assertOnUiThread).

Bug: 863341
Change-Id: Ibe4a63ddaa324b8f9c64b2a7f8fd708cbba5b010
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1590097Reviewed-by: default avatarKarolina Soltys <ksolt@chromium.org>
Reviewed-by: default avatarMatt Reynolds <mattreynolds@chromium.org>
Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Auto-Submit: Karolina Soltys <ksolt@chromium.org>
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#656346}
parent 8f263171
......@@ -139,13 +139,9 @@ public class LocationProviderAndroid implements LocationListener, LocationProvid
final Location location =
mLocationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);
if (location != null) {
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
ThreadUtils.assertOnUiThread();
LocationProviderAdapter.onNewLocationAvailable(location);
}
});
}
return true;
}
......
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