| Index: third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| index 70e4f9aa850029a6889ee3f9650be50b5b34984e..f5839e7642282606744a733fac597e76f222fd93 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| @@ -30,9 +30,9 @@
|
| #include "bindings/core/v8/V8PerIsolateData.h"
|
| #include "core/dom/DocumentParserTiming.h"
|
| #include "core/dom/Element.h"
|
| -#include "core/events/Event.h"
|
| #include "core/dom/IgnoreDestructiveWriteCountIncrementer.h"
|
| #include "core/dom/ScriptLoader.h"
|
| +#include "core/events/Event.h"
|
| #include "core/fetch/ScriptResource.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/html/parser/HTMLInputStream.h"
|
| @@ -44,6 +44,7 @@
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebFrameScheduler.h"
|
| #include <inttypes.h>
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -51,9 +52,9 @@ namespace {
|
|
|
| // TODO(bmcquade): move this to a shared location if we find ourselves wanting
|
| // to trace similar data elsewhere in the codebase.
|
| -PassOwnPtr<TracedValue> getTraceArgsForScriptElement(Element* element, const TextPosition& textPosition)
|
| +std::unique_ptr<TracedValue> getTraceArgsForScriptElement(Element* element, const TextPosition& textPosition)
|
| {
|
| - OwnPtr<TracedValue> value = TracedValue::create();
|
| + std::unique_ptr<TracedValue> value = TracedValue::create();
|
| ScriptLoader* scriptLoader = toScriptLoaderIfPossible(element);
|
| if (scriptLoader && scriptLoader->resource())
|
| value->setString("url", scriptLoader->resource()->url().getString());
|
|
|