Index: components/crx_file/id_util.h |
diff --git a/extensions/common/id_util.h b/components/crx_file/id_util.h |
similarity index 77% |
rename from extensions/common/id_util.h |
rename to components/crx_file/id_util.h |
index 74e690dbf6012133b4261771da8cd2c4d87995c5..b578d3e450853e66a99f96b41550e8e3a3263611 100644 |
--- a/extensions/common/id_util.h |
+++ b/components/crx_file/id_util.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef EXTENSIONS_COMMON_ID_UTIL_H_ |
-#define EXTENSIONS_COMMON_ID_UTIL_H_ |
+#ifndef COMPONENTS_CRX_FILE_ID_UTIL_H_ |
+#define COMPONENTS_CRX_FILE_ID_UTIL_H_ |
#include <string> |
@@ -11,7 +11,7 @@ namespace base { |
class FilePath; |
} |
-namespace extensions { |
+namespace crx_file { |
namespace id_util { |
// The number of bytes in a legal id. |
@@ -29,7 +29,10 @@ std::string GenerateIdForPath(const base::FilePath& path); |
// sure the drive letter is uppercase. |
base::FilePath MaybeNormalizePath(const base::FilePath& path); |
+// Checks to see if the extension has a valid ID. |
Yoyo Zhou
2014/08/19 05:12:13
This is not a good description. It checks an exten
tommycli
2014/08/19 16:48:57
Done.
|
+bool IdIsValid(const std::string& id); |
+ |
} // namespace id_util |
-} // namespace extensions |
+} // namespace crx_file |
-#endif // EXTENSIONS_COMMON_ID_UTIL_H_ |
+#endif // COMPONENTS_CRX_FILE_ID_UTIL_H_ |