From 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 7 May 2012 11:21:11 +0200 Subject: Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286) --- Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp') diff --git a/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp b/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp index 8fd5cfa6d..e87b5aa29 100644 --- a/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp +++ b/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp @@ -146,7 +146,7 @@ private: // that it only gets deleted on the worker context thread which is verified by ~Observer. class WorkerFileSystemContextObserver : public WebCore::WorkerContext::Observer { public: - static PassOwnPtr create(WorkerContext* context, WorkerFileSystemCallbacksBridge* bridge) + static PassOwnPtr create(WorkerContext* context, PassRefPtr bridge) { return adoptPtr(new WorkerFileSystemContextObserver(context, bridge)); } @@ -158,15 +158,13 @@ public: } private: - WorkerFileSystemContextObserver(WorkerContext* context, WorkerFileSystemCallbacksBridge* bridge) + WorkerFileSystemContextObserver(WorkerContext* context, PassRefPtr bridge) : WebCore::WorkerContext::Observer(context) , m_bridge(bridge) { } - // Since WorkerFileSystemCallbacksBridge manages the lifetime of this class, - // m_bridge will be valid throughout its lifetime. - WorkerFileSystemCallbacksBridge* m_bridge; + RefPtr m_bridge; }; void WorkerFileSystemCallbacksBridge::stop() -- cgit v1.2.1