diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/navigator.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/frame/navigator.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/navigator.h b/chromium/third_party/blink/renderer/core/frame/navigator.h index 333194a0514..68d88ddaf08 100644 --- a/chromium/third_party/blink/renderer/core/frame/navigator.h +++ b/chromium/third_party/blink/renderer/core/frame/navigator.h @@ -48,7 +48,11 @@ class CORE_EXPORT Navigator final : public ScriptWrappable, USING_GARBAGE_COLLECTED_MIXIN(Navigator); public: - static Navigator* Create(LocalFrame* frame) { return new Navigator(frame); } + static Navigator* Create(LocalFrame* frame) { + return MakeGarbageCollected<Navigator>(frame); + } + + explicit Navigator(LocalFrame*); // NavigatorCookies bool cookieEnabled() const; @@ -66,9 +70,6 @@ class CORE_EXPORT Navigator final : public ScriptWrappable, Vector<String> languages() override; void Trace(blink::Visitor*) override; - - private: - explicit Navigator(LocalFrame*); }; } // namespace blink |