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

Unified Diff: Source/core/dom/DOMArrayBuffer.h

Issue 794223003: Cheaper thread-safe atomic initialization of static references. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add type check for initial value Created 5 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: Source/core/dom/DOMArrayBuffer.h
diff --git a/Source/core/dom/DOMArrayBuffer.h b/Source/core/dom/DOMArrayBuffer.h
index ab3e4af942a0ef3471cf0c272a40264c0b3d3dea..d959b337e09d9e25496affa064b35a21942616a8 100644
--- a/Source/core/dom/DOMArrayBuffer.h
+++ b/Source/core/dom/DOMArrayBuffer.h
@@ -55,7 +55,7 @@ public:
}
bool transfer(WTF::ArrayBufferContents& result) { return buffer()->transfer(result); }
bool isNeutered() { return buffer()->isNeutered(); }
- void setDeallocationObserver(DOMArrayBufferDeallocationObserver* observer)
+ void setDeallocationObserver(DOMArrayBufferDeallocationObserver& observer)
{
buffer()->setDeallocationObserver(observer);
}

Powered by Google App Engine
This is Rietveld 408576698