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

Unified Diff: mojo/public/utility/environment.cc

Issue 134253004: Mojo: AsyncWaiter and mojo/public/environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 11 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/public/utility/environment.cc
diff --git a/mojo/public/utility/environment.cc b/mojo/public/utility/environment.cc
deleted file mode 100644
index b492030763a64b115812500688509a0adaeb0166..0000000000000000000000000000000000000000
--- a/mojo/public/utility/environment.cc
+++ /dev/null
@@ -1,30 +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/public/utility/environment.h"
-
-#include "mojo/public/utility/bindings_support_impl.h"
-#include "mojo/public/utility/run_loop.h"
-
-namespace mojo {
-
-Environment::Environment() : bindings_support_(NULL) {
- RunLoop::SetUp();
-
- internal::BindingsSupportImpl::SetUp();
- bindings_support_ = new internal::BindingsSupportImpl;
- BindingsSupport::Set(bindings_support_);
-}
-
-Environment::~Environment() {
- // Allow for someone to have replaced BindingsSupport.
- if (BindingsSupport::Get() == bindings_support_)
- BindingsSupport::Set(NULL);
- delete bindings_support_;
- internal::BindingsSupportImpl::TearDown();
-
- RunLoop::TearDown();
-}
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698