| Index: components/nacl/renderer/plugin/pnacl_resources.cc
|
| diff --git a/components/nacl/renderer/plugin/pnacl_resources.cc b/components/nacl/renderer/plugin/pnacl_resources.cc
|
| index dad0a1f42ca601ec920cffb56b22972d802279a2..92773e52a0d00f7c8338fd80b9d114d11c971b3f 100644
|
| --- a/components/nacl/renderer/plugin/pnacl_resources.cc
|
| +++ b/components/nacl/renderer/plugin/pnacl_resources.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include <vector>
|
|
|
| +#include "base/files/file.h"
|
| #include "base/logging.h"
|
| #include "components/nacl/renderer/plugin/plugin.h"
|
| #include "components/nacl/renderer/plugin/utility.h"
|
| @@ -35,8 +36,7 @@ PnaclResources::PnaclResources(Plugin* plugin, bool use_subzero)
|
|
|
| PnaclResources::~PnaclResources() {
|
| for (PnaclResourceEntry& entry : resources_) {
|
| - if (entry.file_info.handle != PP_kInvalidFileHandle)
|
| - CloseFileHandle(entry.file_info.handle);
|
| + base::File closer(entry.file_info.handle);
|
| }
|
| }
|
|
|
|
|