Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: components/crx_file/id_util.h

Issue 850853002: Extensions: Consolidate extension id hashing / searching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/bookmarks/enhanced_bookmark_key_service.cc ('k') | components/crx_file/id_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crx_file/id_util.h
diff --git a/components/crx_file/id_util.h b/components/crx_file/id_util.h
index 4463ff15b77442a2163a9dc02f88b4fee6c4b3da..bd11d96db31bf643d95024c86781c18d78e67e37 100644
--- a/components/crx_file/id_util.h
+++ b/components/crx_file/id_util.h
@@ -21,11 +21,14 @@ extern const size_t kIdSize;
// always generate the same output ID.
std::string GenerateId(const std::string& input);
-// Generate an ID for an extension in the given path.
+// Generates an ID for an extension in the given path.
// Used while developing extensions, before they have a key.
std::string GenerateIdForPath(const base::FilePath& path);
-// Normalize the path for use by the extension. On Windows, this will make
+// Returns the hash of an extension ID in hex.
+std::string HashedIdInHex(const std::string& id);
+
+// Normalizes the path for use by the extension. On Windows, this will make
// sure the drive letter is uppercase.
base::FilePath MaybeNormalizePath(const base::FilePath& path);
« no previous file with comments | « chrome/browser/ui/bookmarks/enhanced_bookmark_key_service.cc ('k') | components/crx_file/id_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698