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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 2019963002: Remove get from CrossThreadPersistent to avoid accidental use Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/WebKit/Source/platform/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 7738623afd7e153052fc57af8f7d5803bc53044a..b803b70edf34496862ea7a12356a1b591c640194 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -521,7 +521,7 @@ public:
// terminating, preventing access to a finalized heap.
for (auto& globalIntWrapper : m_crossPersistents) {
ASSERT(globalIntWrapper.get());
- EXPECT_FALSE(globalIntWrapper.get()->get());
+ EXPECT_FALSE(static_cast<bool>(*globalIntWrapper.get()));
}
}

Powered by Google App Engine
This is Rietveld 408576698