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,12 +139,8 @@ public class LocationProviderAndroid implements LocationListener, LocationProvid ...@@ -139,12 +139,8 @@ public class LocationProviderAndroid implements LocationListener, LocationProvid
final Location location = final Location location =
mLocationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER); mLocationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);
if (location != null) { if (location != null) {
ThreadUtils.runOnUiThread(new Runnable() { ThreadUtils.assertOnUiThread();
@Override LocationProviderAdapter.onNewLocationAvailable(location);
public void run() {
LocationProviderAdapter.onNewLocationAvailable(location);
}
});
} }
return true; 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