Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
| diff --git a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
| index c672cb28691b155f4af8fa0b2cf5692e9e0ff0e4..3a9ee9109999bc32d3cbc098d1fded5e9dacdcb4 100644 |
| --- a/third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
| +++ b/third_party/WebKit/Source/core/html/forms/FileInputType.cpp |
| @@ -242,12 +242,8 @@ FileList* FileInputType::createFileList(const Vector<FileChooserFileInfo>& files |
| void FileInputType::countUsage() |
| { |
| - // It is required by isSecureContext() but isn't |
| - // actually used. This could be used later if a warning is shown in the |
| - // developer console. |
| - String insecureOriginMsg; |
| Document* document = &element().document(); |
| - if (document->isSecureContext(insecureOriginMsg)) |
| + if (document->ExecutionContext::isSecureContext()) |
|
estark
2015/12/18 00:00:58
same
|
| UseCounter::count(*document, UseCounter::InputTypeFileInsecureOrigin); |
| else |
| UseCounter::count(*document, UseCounter::InputTypeFileSecureOrigin); |