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

Unified Diff: mojo/shell/shell_test_helper.cc

Issue 420143003: mojo: shell::Context should outlive the shell MessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix + verify android Created 6 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
« no previous file with comments | « mojo/shell/shell_test_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell_test_helper.cc
diff --git a/mojo/shell/shell_test_helper.cc b/mojo/shell/shell_test_helper.cc
index 37f8ed2e6ca871be00b76a4e5d9e9f11bacdce13..52eebc9d14716197f4309ef15833e7a1205c99d0 100644
--- a/mojo/shell/shell_test_helper.cc
+++ b/mojo/shell/shell_test_helper.cc
@@ -24,17 +24,17 @@ ShellTestHelper::~ShellTestHelper() {
}
void ShellTestHelper::Init() {
- context_.reset(new Context);
- test_api_.reset(new ServiceManager::TestAPI(context_->service_manager()));
+ context_.Init();
+ test_api_.reset(new ServiceManager::TestAPI(context_.service_manager()));
base::FilePath service_dir;
CHECK(PathService::Get(base::DIR_MODULE, &service_dir));
- context_->mojo_url_resolver()->SetBaseURL(
+ context_.mojo_url_resolver()->SetBaseURL(
net::FilePathToFileURL(service_dir));
}
void ShellTestHelper::SetLoaderForURL(scoped_ptr<ServiceLoader> loader,
const GURL& url) {
- context_->service_manager()->SetLoaderForURL(loader.Pass(), url);
+ context_.service_manager()->SetLoaderForURL(loader.Pass(), url);
}
} // namespace shell
« no previous file with comments | « mojo/shell/shell_test_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698