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

Unified Diff: mojo/shell/scoped_message_pipe.cc

Issue 64973002: Moves some files into mojo/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/scoped_message_pipe.cc
diff --git a/mojo/shell/scoped_message_pipe.cc b/mojo/shell/scoped_message_pipe.cc
deleted file mode 100644
index 863e140b83e3498754f7fd2370ba8e0a5d8f7d18..0000000000000000000000000000000000000000
--- a/mojo/shell/scoped_message_pipe.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/shell/scoped_message_pipe.h"
-
-namespace mojo {
-namespace shell {
-
-ScopedMessagePipe::ScopedMessagePipe()
- : handle_0_(MOJO_HANDLE_INVALID),
- handle_1_(MOJO_HANDLE_INVALID) {
- MojoCreateMessagePipe(&handle_0_, &handle_1_);
-}
-
-ScopedMessagePipe::~ScopedMessagePipe() {
- if (handle_0_ != MOJO_HANDLE_INVALID)
- MojoClose(handle_0_);
-
- if (handle_1_ != MOJO_HANDLE_INVALID)
- MojoClose(handle_1_);
-}
-
-} // namespace shell
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698