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

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

Issue 547743002: Oilpan: fix build after r181472. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8ScriptRunnerTest.cpp
diff --git a/Source/bindings/core/v8/V8ScriptRunnerTest.cpp b/Source/bindings/core/v8/V8ScriptRunnerTest.cpp
index 2dbb0c5e35be6902912dcfd47fc25aaeca368e45..3fde4cf7aae259b025cc6ce0c93b684338bacb57 100644
--- a/Source/bindings/core/v8/V8ScriptRunnerTest.cpp
+++ b/Source/bindings/core/v8/V8ScriptRunnerTest.cpp
@@ -6,6 +6,7 @@
#include "bindings/core/v8/V8ScriptRunner.h"
#include "core/fetch/ScriptResource.h"
+#include "platform/heap/Handle.h"
#include <gtest/gtest.h>
#include <v8.h>
@@ -80,18 +81,18 @@ public:
void setEmptyResource()
{
m_resourceRequest = WTF::adoptPtr(new ResourceRequest);
- m_resource = WTF::adoptPtr(new ScriptResource(*m_resourceRequest.get(), "text/utf-8"));
+ m_resource = adoptPtrWillBeNoop(new ScriptResource(*m_resourceRequest.get(), "text/utf-8"));
}
void setResource()
{
m_resourceRequest = WTF::adoptPtr(new ResourceRequest(url()));
- m_resource = WTF::adoptPtr(new ScriptResource(*m_resourceRequest.get(), "text/utf-8"));
+ m_resource = adoptPtrWillBeNoop(new ScriptResource(*m_resourceRequest.get(), "text/utf-8"));
}
protected:
WTF::OwnPtr<ResourceRequest> m_resourceRequest;
- WTF::OwnPtr<ScriptResource> m_resource;
+ OwnPtrWillBePersistent<ScriptResource> m_resource;
static unsigned cacheTagParser;
static unsigned cacheTagCode;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698