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

Unified Diff: mojo/embedder/test_embedder.cc

Issue 231353002: Make mojo_system static and mojo_system_impl a component, never use both (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get content builds to work Created 6 years, 8 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/embedder/test_embedder.cc
diff --git a/mojo/embedder/test_embedder.cc b/mojo/embedder/test_embedder.cc
index 855d1da4feecbc02a19a19a392c1d7e77cb9814f..049855d2504c635dcc3af77b45e3de244612066f 100644
--- a/mojo/embedder/test_embedder.cc
+++ b/mojo/embedder/test_embedder.cc
@@ -6,7 +6,8 @@
#include "base/logging.h"
#include "base/macros.h"
-#include "mojo/system/core_impl.h"
+#include "mojo/system/core.h"
+#include "mojo/system/entrypoints.h"
#include "mojo/system/handle_table.h"
namespace mojo {
@@ -14,7 +15,7 @@ namespace mojo {
namespace system {
namespace internal {
-bool ShutdownCheckNoLeaks(CoreImpl* core_impl) {
+bool ShutdownCheckNoLeaks(Core* core_impl) {
// No point in taking the lock.
const HandleTable::HandleToEntryMap& handle_to_entry_map =
core_impl->handle_table_.handle_to_entry_map_;
@@ -38,12 +39,12 @@ namespace embedder {
namespace test {
bool Shutdown() {
- system::CoreImpl* core_impl = static_cast<system::CoreImpl*>(Core::Get());
- CHECK(core_impl);
- Core::Reset();
+ system::Core* core = system::entrypoints::GetCore();
+ CHECK(core);
+ system::entrypoints::SetCore(NULL);
- bool rv = system::internal::ShutdownCheckNoLeaks(core_impl);
- delete core_impl;
+ bool rv = system::internal::ShutdownCheckNoLeaks(core);
+ delete core;
return rv;
}
« no previous file with comments | « mojo/embedder/embedder.cc ('k') | mojo/mojo.gyp » ('j') | mojo/mojo_public.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698