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

Unified Diff: content/test/render_thread_impl_browser_test_ipc_helper.h

Issue 1891043002: Revert of Use a token to initialise ChannelMojo and MojoApplication everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/test/render_thread_impl_browser_test_ipc_helper.h
diff --git a/content/test/render_thread_impl_browser_test_ipc_helper.h b/content/test/render_thread_impl_browser_test_ipc_helper.h
index f98824bea25fa5bf66282b5758947af92ec46b00..8420d6a54863feff0b9127815958b1743908b029 100644
--- a/content/test/render_thread_impl_browser_test_ipc_helper.h
+++ b/content/test/render_thread_impl_browser_test_ipc_helper.h
@@ -7,6 +7,7 @@
#include "content/app/mojo/mojo_init.h"
#include "content/browser/mojo/mojo_application_host.h"
+#include "content/common/mojo/mojo_messages.h"
#include "ipc/ipc_channel_proxy.h"
#include "ipc/mojo/ipc_channel_mojo.h"
#include "ipc/mojo/scoped_ipc_support.h"
@@ -33,12 +34,8 @@
scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() const;
- const std::string& GetMojoIpcToken() const {
- return mojo_ipc_token_;
- }
-
- const std::string& GetMojoApplicationToken() const {
- return mojo_application_token_;
+ mojo::MessagePipeHandle GetMessagePipeHandle() {
+ return message_pipe_handle_.release();
}
private:
@@ -53,8 +50,7 @@
std::unique_ptr<DummyListener> dummy_listener_;
std::unique_ptr<IPC::ScopedIPCSupport> ipc_support_;
std::unique_ptr<MojoApplicationHost> mojo_application_host_;
- std::string mojo_ipc_token_;
- std::string mojo_application_token_;
+ mojo::ScopedMessagePipeHandle message_pipe_handle_;
std::string channel_id_;
};
« no previous file with comments | « content/renderer/render_thread_impl_browsertest.cc ('k') | content/test/render_thread_impl_browser_test_ipc_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698