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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/process_type.h

Issue 1179733005: Update mojo sdk to rev bdbb0c7e396fc4044a8b194058d7a7e529715286 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update CommandBufferImpl (Binding::OnConnectionError is no more) Created 5 years, 6 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: third_party/mojo/src/mojo/edk/embedder/process_type.h
diff --git a/third_party/mojo/src/mojo/edk/embedder/process_type.h b/third_party/mojo/src/mojo/edk/embedder/process_type.h
index 87292df9ef16925077466aa726348d1fd054cc97..c18c5f58ce104321b390eb8335e5a5cead6b59a3 100644
--- a/third_party/mojo/src/mojo/edk/embedder/process_type.h
+++ b/third_party/mojo/src/mojo/edk/embedder/process_type.h
@@ -5,6 +5,10 @@
#ifndef MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
#define MOJO_EDK_EMBEDDER_PROCESS_TYPE_H_
+#include <ostream>
+
+#include "mojo/edk/system/system_impl_export.h"
+
namespace mojo {
namespace embedder {
@@ -20,6 +24,13 @@ enum class ProcessType {
SLAVE,
};
+// So logging macros and |DCHECK_EQ()|, etc. work.
+MOJO_SYSTEM_IMPL_EXPORT inline std::ostream& operator<<(
+ std::ostream& out,
+ ProcessType process_type) {
+ return out << static_cast<int>(process_type);
+}
+
} // namespace embedder
} // namespace mojo
« no previous file with comments | « third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h ('k') | third_party/mojo/src/mojo/edk/embedder/slave_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698