| Index: Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
|
| diff --git a/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp b/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
|
| index f9ed2ba4e3882067bb61613770a84a24cfabcc7f..2caf39e94de18594101c1b5b3e897d8a29d82272 100644
|
| --- a/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
|
| +++ b/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
|
| @@ -13,6 +13,7 @@
|
| #include "platform/weborigin/KURL.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/WebPassOwnPtr.h"
|
| #include "public/platform/WebServiceWorkerCache.h"
|
| #include "public/platform/WebServiceWorkerCacheError.h"
|
| #include "public/platform/WebServiceWorkerCacheStorage.h"
|
| @@ -346,9 +347,10 @@ public:
|
| m_callback->sendSuccess();
|
| }
|
|
|
| - void onError(WebServiceWorkerCacheError* error)
|
| + void onError(WebPassOwnPtr<WebServiceWorkerCacheError> e)
|
| {
|
| - m_callback->sendFailure(String::format("Error requesting cache names: %s", serviceWorkerCacheErrorString(error).data()));
|
| + OwnPtr<WebServiceWorkerCacheError> error = e.release();
|
| + m_callback->sendFailure(String::format("Error requesting cache names: %s", serviceWorkerCacheErrorString(error.get()).data()));
|
| }
|
|
|
| private:
|
|
|