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

Unified Diff: chrome/browser/component_updater/component_updater_utils.cc

Issue 481433005: Extensions: Move id_util functions to crx_file component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update GN build Created 6 years, 4 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
Index: chrome/browser/component_updater/component_updater_utils.cc
diff --git a/chrome/browser/component_updater/component_updater_utils.cc b/chrome/browser/component_updater/component_updater_utils.cc
index a3b203804609446489774d3f10fd0b855c671308..7e33141c001e4016b691c31b49d06f9e47b753f2 100644
--- a/chrome/browser/component_updater/component_updater_utils.cc
+++ b/chrome/browser/component_updater/component_updater_utils.cc
@@ -17,6 +17,7 @@
#include "base/win/windows_version.h"
#include "chrome/browser/component_updater/component_updater_configurator.h"
#include "chrome/browser/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;
}

Powered by Google App Engine
This is Rietveld 408576698