Index: components/component_updater/component_updater_utils.cc |
diff --git a/components/component_updater/component_updater_utils.cc b/components/component_updater/component_updater_utils.cc |
index 116a8d0c0286b2cfae7dc5b036942afd54184282..9ef561ebcf8593666ca4a1466eef8b0607df59d6 100644 |
--- a/components/component_updater/component_updater_utils.cc |
+++ b/components/component_updater/component_updater_utils.cc |
@@ -17,6 +17,7 @@ |
#include "base/win/windows_version.h" |
#include "components/component_updater/component_updater_configurator.h" |
#include "components/component_updater/crx_update_item.h" |
+#include "components/crx_file/id_util.h" |
#include "components/omaha_query_params/omaha_query_params.h" |
#include "net/base/load_flags.h" |
#include "net/url_request/url_fetcher.h" |
@@ -181,8 +182,7 @@ std::string HexStringToID(const std::string& hexstr) { |
} |
} |
- // TODO(tommycli): Add back the DCHECK validating the generated id. This |
- // requires moving the extension id_util functions into components/crx_file. |
+ DCHECK(crx_file::id_util::IdIsValid(id)); |
return id; |
} |