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

Unified Diff: mojo/shell/capability_filter_unittest.cc

Issue 1266643003: ApplicationImpl cleanup, part 1: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
Index: mojo/shell/capability_filter_unittest.cc
diff --git a/mojo/shell/capability_filter_unittest.cc b/mojo/shell/capability_filter_unittest.cc
index 688815f165007ca3a805ab3673e9cc0517c67d19..f571020e1445b41ee9ef526aa5e6f4e125897e0e 100644
--- a/mojo/shell/capability_filter_unittest.cc
+++ b/mojo/shell/capability_filter_unittest.cc
@@ -58,7 +58,8 @@ class ConnectionValidator : public ApplicationLoader,
private:
// Overridden from ApplicationLoader:
void Load(const GURL& url, InterfaceRequest<Application> request) override {
- app_.reset(new ApplicationImpl(this, request.Pass()));
+ app_.reset(new ApplicationImpl(this, request.Pass(),
+ base::MessageLoop::QuitWhenIdleClosure()));
}
// Overridden from ApplicationDelegate:
@@ -182,7 +183,8 @@ class TestContentHandler : public ApplicationDelegate,
void StartApplication(InterfaceRequest<Application> application,
URLResponsePtr response) override {
embedded_apps_.push_back(
- new ApplicationImpl(new TestApplication, application.Pass()));
+ new ApplicationImpl(new TestApplication, application.Pass(),
+ base::MessageLoop::QuitWhenIdleClosure()));
}
ApplicationImpl* app_;
@@ -320,7 +322,8 @@ class TestLoader : public ApplicationLoader {
private:
// Overridden from ApplicationLoader:
void Load(const GURL& url, InterfaceRequest<Application> request) override {
- app_.reset(new ApplicationImpl(delegate_.get(), request.Pass()));
+ app_.reset(new ApplicationImpl(delegate_.get(), request.Pass(),
+ base::MessageLoop::QuitWhenIdleClosure()));
}
scoped_ptr<ApplicationDelegate> delegate_;
« components/filesystem/file_system_app.cc ('K') | « mojo/shell/application_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698