Apply lints from internal roll (#16509)

This commit is contained in:
Dan Field 2020-02-10 13:53:04 -08:00 committed by GitHub
parent 1daba53187
commit 826b2d46ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ void MessageLoopTaskQueues::GetTasksToRunNow(
if (top.GetTargetTime() > now) {
break;
}
invocations.emplace_back(std::move(top.GetTask()));
invocations.emplace_back(top.GetTask());
queue_entries_.at(top_queue)->delayed_tasks.pop();
if (type == FlushType::kSingle) {
break;
@ -149,7 +149,7 @@ void MessageLoopTaskQueues::AddTaskObserver(TaskQueueId queue_id,
const fml::closure& callback) {
std::lock_guard guard(queue_mutex_);
FML_DCHECK(callback != nullptr) << "Observer callback must be non-null.";
queue_entries_.at(queue_id)->task_observers[key] = std::move(callback);
queue_entries_.at(queue_id)->task_observers[key] = callback;
}
void MessageLoopTaskQueues::RemoveTaskObserver(TaskQueueId queue_id,

View File

@ -135,7 +135,7 @@ class MessageLoopTaskQueues
bool HasPendingTasksUnlocked(TaskQueueId queue_id) const;
const DelayedTask& PeekNextTaskUnlocked(TaskQueueId queue_id,
const DelayedTask& PeekNextTaskUnlocked(TaskQueueId owner,
TaskQueueId& top_queue_id) const;
fml::TimePoint GetNextWakeTimeUnlocked(TaskQueueId queue_id) const;

View File

@ -364,7 +364,7 @@ final class AccessibilityViewEmbedder {
MotionEvent.PointerCoords originCoords = new MotionEvent.PointerCoords();
event.getPointerCoords(i, originCoords);
pointerCoords[i] = new MotionEvent.PointerCoords((originCoords));
pointerCoords[i] = new MotionEvent.PointerCoords(originCoords);
pointerCoords[i].x -= displayBounds.left;
pointerCoords[i].y -= displayBounds.top;
}
@ -399,7 +399,7 @@ final class AccessibilityViewEmbedder {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!(o instanceof ViewAndId)) return false;
ViewAndId viewAndId = (ViewAndId) o;
return id == viewAndId.id && view.equals(viewAndId.view);
}