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

Unified Diff: mojo/shell/application_manager_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/application_manager_unittest.cc
diff --git a/mojo/shell/application_manager_unittest.cc b/mojo/shell/application_manager_unittest.cc
index 01c285cf656c6f3695fdd26bcf537604a983a5cf..c3f7b464ff0c4201698c917b37d58c732504e110 100644
--- a/mojo/shell/application_manager_unittest.cc
+++ b/mojo/shell/application_manager_unittest.cc
@@ -139,7 +139,9 @@ class TestApplicationLoader : public ApplicationLoader,
void Load(const GURL& url,
InterfaceRequest<Application> application_request) override {
++num_loads_;
- test_app_.reset(new ApplicationImpl(this, application_request.Pass()));
+ test_app_.reset(
+ new ApplicationImpl(this, application_request.Pass(),
+ base::MessageLoop::QuitWhenIdleClosure()));
}
// ApplicationDelegate implementation.
@@ -367,7 +369,8 @@ class Tester : public ApplicationDelegate,
private:
void Load(const GURL& url,
InterfaceRequest<Application> application_request) override {
- app_.reset(new ApplicationImpl(this, application_request.Pass()));
+ app_.reset(new ApplicationImpl(this, application_request.Pass(),
+ base::MessageLoop::QuitWhenIdleClosure()));
}
bool ConfigureIncomingConnection(ApplicationConnection* connection) override {

Powered by Google App Engine
This is Rietveld 408576698