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 "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 ExtensionResource::ExtensionResource() : follow_symlinks_anywhere_(false) { | 13 ExtensionResource::ExtensionResource() : follow_symlinks_anywhere_(false) { |
14 } | 14 } |
15 | 15 |
16 ExtensionResource::ExtensionResource(const std::string& extension_id, | 16 ExtensionResource::ExtensionResource(const std::string& extension_id, |
17 const base::FilePath& extension_root, | 17 const base::FilePath& extension_root, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 GetFilePath(); | 119 GetFilePath(); |
120 if (NormalizeSeperators(path.value()) == | 120 if (NormalizeSeperators(path.value()) == |
121 NormalizeSeperators(full_resource_path_.value())) { | 121 NormalizeSeperators(full_resource_path_.value())) { |
122 return true; | 122 return true; |
123 } else { | 123 } else { |
124 return false; | 124 return false; |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 } // namespace extensions | 128 } // namespace extensions |
OLD | NEW |