OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/extensions/extension_resource.h" | 5 #include "chrome/common/extensions/extension_resource.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "chrome/browser/extensions/extension_l10n_util.h" | 10 #include "chrome/common/extensions/extension_l10n_util.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
13 | 13 |
14 ExtensionResource::ExtensionResource() { | 14 ExtensionResource::ExtensionResource() { |
15 } | 15 } |
16 | 16 |
17 ExtensionResource::ExtensionResource(const FilePath& extension_root, | 17 ExtensionResource::ExtensionResource(const FilePath& extension_root, |
18 const FilePath& relative_path) | 18 const FilePath& relative_path) |
19 : extension_root_(extension_root), | 19 : extension_root_(extension_root), |
20 relative_path_(relative_path) { | 20 relative_path_(relative_path) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Make sure we have a cached value to test against... | 79 // Make sure we have a cached value to test against... |
80 if (full_resource_path_.empty()) | 80 if (full_resource_path_.empty()) |
81 GetFilePath(); | 81 GetFilePath(); |
82 if (NormalizeSeperators(path.value()) == | 82 if (NormalizeSeperators(path.value()) == |
83 NormalizeSeperators(full_resource_path_.value())) { | 83 NormalizeSeperators(full_resource_path_.value())) { |
84 return true; | 84 return true; |
85 } else { | 85 } else { |
86 return false; | 86 return false; |
87 } | 87 } |
88 } | 88 } |
OLD | NEW |