Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1168)

Unified Diff: content/browser/browser_associated_interface_unittest.cc

Issue 2871523002: Use OnceCallback on Mojo interfaces in //content (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_version_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_associated_interface_unittest.cc
diff --git a/content/browser/browser_associated_interface_unittest.cc b/content/browser/browser_associated_interface_unittest.cc
index 0c73a71162c78285109b79540b28741afdb65c15..d653010e6b1a9fbcfc4bac51ed7684407165309c 100644
--- a/content/browser/browser_associated_interface_unittest.cc
+++ b/content/browser/browser_associated_interface_unittest.cc
@@ -4,6 +4,7 @@
#include <memory>
#include <string>
+#include <utility>
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
@@ -96,9 +97,9 @@ class TestDriverMessageFilter
next_expected_string_ = expected;
}
- void RequestQuit(const RequestQuitCallback& callback) override {
+ void RequestQuit(RequestQuitCallback callback) override {
EXPECT_EQ(kNumTestMessages, message_count_);
- callback.Run();
+ std::move(callback).Run();
base::MessageLoop::current()->QuitWhenIdle();
}
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_version_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698