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

Unified Diff: mojo/fetcher/about_fetcher_unittest.cc

Issue 1431573002: Fix hangs in Mandoline page cycler on Linux with --enable-multiprocess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 1 month 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
Index: mojo/fetcher/about_fetcher_unittest.cc
diff --git a/mojo/fetcher/about_fetcher_unittest.cc b/mojo/fetcher/about_fetcher_unittest.cc
index dd7087e820dc82a1e5a667dfb910058fd22ec02d..1537d22339ff0d6e5bc00842c51e57ff41466c05 100644
--- a/mojo/fetcher/about_fetcher_unittest.cc
+++ b/mojo/fetcher/about_fetcher_unittest.cc
@@ -51,10 +51,13 @@ class TestContentHandler : public ApplicationDelegate,
}
// Overridden from ContentHandler:
- void StartApplication(InterfaceRequest<Application> application,
- URLResponsePtr response) override {
+ void StartApplication(
+ InterfaceRequest<Application> application,
+ URLResponsePtr response,
+ const Callback<void()>& destruct_callback) override {
response_number_++;
latest_response_ = response.Pass();
+ destruct_callback.Run();
// Drop |application| request. This results in the application manager
// dropping the ServiceProvider interface request provided by the client

Powered by Google App Engine
This is Rietveld 408576698