| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/extension_resource.h" | 5 #include "extensions/common/extension_resource.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "base/threading/thread_restrictions.h" | 11 #include "base/threading/thread_restrictions.h" |
| 10 | 12 |
| 11 namespace extensions { | 13 namespace extensions { |
| 12 | 14 |
| 13 ExtensionResource::ExtensionResource() : follow_symlinks_anywhere_(false) { | 15 ExtensionResource::ExtensionResource() : follow_symlinks_anywhere_(false) { |
| 14 } | 16 } |
| 15 | 17 |
| 16 ExtensionResource::ExtensionResource(const std::string& extension_id, | 18 ExtensionResource::ExtensionResource(const std::string& extension_id, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 GetFilePath(); | 121 GetFilePath(); |
| 120 if (NormalizeSeperators(path.value()) == | 122 if (NormalizeSeperators(path.value()) == |
| 121 NormalizeSeperators(full_resource_path_.value())) { | 123 NormalizeSeperators(full_resource_path_.value())) { |
| 122 return true; | 124 return true; |
| 123 } else { | 125 } else { |
| 124 return false; | 126 return false; |
| 125 } | 127 } |
| 126 } | 128 } |
| 127 | 129 |
| 128 } // namespace extensions | 130 } // namespace extensions |
| OLD | NEW |