Commit 9e150f6e authored by Reilly Grant's avatar Reilly Grant Committed by Chromium LUCI CQ

Convert callbacks in //chrome/browser/chromeos/display

This change converts callbacks from base::Bind and base::Callback to
Once/Repeating in //chrome/browser/chromeos/display.

Bug: 1148570
Change-Id: I707dd2dd440d2fbcc8a7fcad499cef29dc226a03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2645309
Auto-Submit: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846357}
parent 26db8fe6
......@@ -73,7 +73,7 @@ class QuirksBrowserTest : public InProcessBrowserTest {
icc_path_ = path;
file_existed_ = !downloaded;
ASSERT_TRUE(!end_message_loop_.is_null());
end_message_loop_.Run();
std::move(end_message_loop_).Run();
}
void SetUpOnMainThread() override {
......@@ -96,7 +96,7 @@ class QuirksBrowserTest : public InProcessBrowserTest {
&test_url_loader_factory_));
}
base::Closure end_message_loop_; // Callback to terminate message loop.
base::OnceClosure end_message_loop_; // Callback to terminate message loop.
base::FilePath icc_path_; // Path to icc file if found or downloaded.
bool file_existed_ = false; // File was previously downloaded.
bool find_fake_file_ = false; // Return success from Quirks server
......
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