Commit 50d571ae authored by George Burgess IV's avatar George Burgess IV Committed by Commit Bot

ui: fix an instance of bugprone-unused-raii

It seems that this constructor call was intended to be used as a scope
guard. In order for that to happen, there has to be a variable name
here.

Bug: 1130379
Change-Id: I3c5f1ec85cefcfebc6d40ca82488423edb8e7ec1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2420916Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808940}
parent 4cbe5b13
...@@ -322,7 +322,7 @@ void Connection::Sync() { ...@@ -322,7 +322,7 @@ void Connection::Sync() {
if (syncing_) if (syncing_)
return; return;
{ {
base::AutoReset<bool>(&syncing_, true); base::AutoReset<bool> auto_reset(&syncing_, true);
GetInputFocus({}).Sync(); GetInputFocus({}).Sync();
} }
} }
......
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