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

Unified Diff: mojo/public/bindings/lib/buffer.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/bindings/lib/buffer.cc
diff --git a/mojo/public/bindings/lib/buffer.cc b/mojo/public/bindings/lib/buffer.cc
index 6b303fb7b79c85a6e89970ae1c29477722c070e5..bb7a53ab54bb415ae6fa688ca338ea744f78b5e0 100644
--- a/mojo/public/bindings/lib/buffer.cc
+++ b/mojo/public/bindings/lib/buffer.cc
@@ -11,7 +11,7 @@
#include <algorithm>
#include "mojo/public/bindings/lib/bindings_serialization.h"
-#include "mojo/public/bindings/lib/bindings_support.h"
+#include "mojo/public/environment/buffer_tls.h"
// Scrub memory in debug builds to help catch use-after-free bugs.
#ifdef NDEBUG
@@ -25,17 +25,16 @@ namespace mojo {
//-----------------------------------------------------------------------------
Buffer::Buffer() {
- previous_ = BindingsSupport::Get()->SetCurrentBuffer(this);
+ previous_ = internal::SetCurrentBuffer(this);
}
Buffer::~Buffer() {
- Buffer* buf MOJO_ALLOW_UNUSED =
- BindingsSupport::Get()->SetCurrentBuffer(previous_);
+ Buffer* buf MOJO_ALLOW_UNUSED = internal::SetCurrentBuffer(previous_);
assert(buf == this);
}
Buffer* Buffer::current() {
- return BindingsSupport::Get()->GetCurrentBuffer();
+ return internal::GetCurrentBuffer();
}
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698