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

Unified Diff: Source/bindings/core/v8/ScriptPromisePropertyBase.cpp

Issue 921813002: Fix template angle bracket syntax in bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/bindings/core/v8/ScriptPromisePropertyBase.cpp
diff --git a/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp b/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
index 08c90eadb3f60ba61fdd846fbce562a0ccac7cad..fb135651e81e857deb95dd8f5542b1bb39b7f423 100644
--- a/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
+++ b/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
@@ -26,7 +26,7 @@ ScriptPromisePropertyBase::~ScriptPromisePropertyBase()
clearWrappers();
}
-static void clearHandle(const v8::WeakCallbackData<v8::Object, ScopedPersistent<v8::Object> >& data)
+static void clearHandle(const v8::WeakCallbackData<v8::Object, ScopedPersistent<v8::Object>>& data)
{
data.GetParameter()->clear();
}
@@ -80,7 +80,7 @@ void ScriptPromisePropertyBase::resolveOrReject(State targetState)
v8::HandleScope handleScope(m_isolate);
size_t i = 0;
while (i < m_wrappers.size()) {
- const OwnPtr<ScopedPersistent<v8::Object> >& persistent = m_wrappers[i];
+ const OwnPtr<ScopedPersistent<v8::Object>>& persistent = m_wrappers[i];
if (persistent->isEmpty()) {
// wrapper has died.
// Since v8 GC can run during the iteration and clear the reference,
@@ -125,7 +125,7 @@ v8::Local<v8::Object> ScriptPromisePropertyBase::ensureHolderWrapper(ScriptState
v8::Local<v8::Context> context = scriptState->context();
size_t i = 0;
while (i < m_wrappers.size()) {
- const OwnPtr<ScopedPersistent<v8::Object> >& persistent = m_wrappers[i];
+ const OwnPtr<ScopedPersistent<v8::Object>>& persistent = m_wrappers[i];
if (persistent->isEmpty()) {
// wrapper has died.
// Since v8 GC can run during the iteration and clear the reference,
@@ -140,7 +140,7 @@ v8::Local<v8::Object> ScriptPromisePropertyBase::ensureHolderWrapper(ScriptState
++i;
}
v8::Local<v8::Object> wrapper = holder(context->Global(), m_isolate);
- OwnPtr<ScopedPersistent<v8::Object> > weakPersistent = adoptPtr(new ScopedPersistent<v8::Object>);
+ OwnPtr<ScopedPersistent<v8::Object>> weakPersistent = adoptPtr(new ScopedPersistent<v8::Object>);
weakPersistent->set(m_isolate, wrapper);
weakPersistent->setWeak(weakPersistent.get(), &clearHandle);
m_wrappers.append(weakPersistent.release());
« no previous file with comments | « Source/bindings/core/v8/ScriptPromisePropertyBase.h ('k') | Source/bindings/core/v8/ScriptPromisePropertyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698