| Index: third_party/WebKit/Source/modules/filesystem/Entry.cpp
|
| diff --git a/third_party/WebKit/Source/modules/filesystem/Entry.cpp b/third_party/WebKit/Source/modules/filesystem/Entry.cpp
|
| index 7201b219be61404ce8f2ba7750aba5c1da117225..5326805344e940824da0dbd7028ae37dda2f416d 100644
|
| --- a/third_party/WebKit/Source/modules/filesystem/Entry.cpp
|
| +++ b/third_party/WebKit/Source/modules/filesystem/Entry.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "modules/filesystem/Entry.h"
|
|
|
| #include "bindings/core/v8/ScriptState.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/fileapi/FileError.h"
|
| #include "core/frame/UseCounter.h"
|
| #include "core/html/VoidCallback.h"
|
| @@ -49,7 +50,7 @@
|
| DOMFileSystem* Entry::filesystem(ScriptState* script_state) const {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| UseCounter::Count(
|
| - script_state->GetExecutionContext(),
|
| + ExecutionContext::From(script_state),
|
| UseCounter::kEntry_Filesystem_AttributeGetter_IsolatedFileSystem);
|
| return filesystem();
|
| }
|
| @@ -58,7 +59,7 @@
|
| MetadataCallback* success_callback,
|
| ErrorCallback* error_callback) {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| - UseCounter::Count(script_state->GetExecutionContext(),
|
| + UseCounter::Count(ExecutionContext::From(script_state),
|
| UseCounter::kEntry_GetMetadata_Method_IsolatedFileSystem);
|
| file_system_->GetMetadata(this, success_callback,
|
| ScriptErrorCallback::Wrap(error_callback));
|
| @@ -70,7 +71,7 @@
|
| EntryCallback* success_callback,
|
| ErrorCallback* error_callback) const {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| - UseCounter::Count(script_state->GetExecutionContext(),
|
| + UseCounter::Count(ExecutionContext::From(script_state),
|
| UseCounter::kEntry_MoveTo_Method_IsolatedFileSystem);
|
| file_system_->Move(this, parent, name, success_callback,
|
| ScriptErrorCallback::Wrap(error_callback));
|
| @@ -82,7 +83,7 @@
|
| EntryCallback* success_callback,
|
| ErrorCallback* error_callback) const {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| - UseCounter::Count(script_state->GetExecutionContext(),
|
| + UseCounter::Count(ExecutionContext::From(script_state),
|
| UseCounter::kEntry_CopyTo_Method_IsolatedFileSystem);
|
| file_system_->Copy(this, parent, name, success_callback,
|
| ScriptErrorCallback::Wrap(error_callback));
|
| @@ -92,7 +93,7 @@
|
| VoidCallback* success_callback,
|
| ErrorCallback* error_callback) const {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| - UseCounter::Count(script_state->GetExecutionContext(),
|
| + UseCounter::Count(ExecutionContext::From(script_state),
|
| UseCounter::kEntry_Remove_Method_IsolatedFileSystem);
|
| file_system_->Remove(this, success_callback,
|
| ScriptErrorCallback::Wrap(error_callback));
|
| @@ -102,7 +103,7 @@
|
| EntryCallback* success_callback,
|
| ErrorCallback* error_callback) const {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| - UseCounter::Count(script_state->GetExecutionContext(),
|
| + UseCounter::Count(ExecutionContext::From(script_state),
|
| UseCounter::kEntry_GetParent_Method_IsolatedFileSystem);
|
| file_system_->GetParent(this, success_callback,
|
| ScriptErrorCallback::Wrap(error_callback));
|
| @@ -110,7 +111,7 @@
|
|
|
| String Entry::toURL(ScriptState* script_state) const {
|
| if (file_system_->GetType() == kFileSystemTypeIsolated)
|
| - UseCounter::Count(script_state->GetExecutionContext(),
|
| + UseCounter::Count(ExecutionContext::From(script_state),
|
| UseCounter::kEntry_ToURL_Method_IsolatedFileSystem);
|
| return static_cast<const EntryBase*>(this)->toURL();
|
| }
|
|
|