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

Unified Diff: extensions/browser/verified_contents.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: extensions/browser/verified_contents.cc
diff --git a/extensions/browser/verified_contents.cc b/extensions/browser/verified_contents.cc
index f4272b7ceeb7d6701e7ed98ffc8acac051f3a20e..b92e72d3210a106eaedac12761ebd359a8345f35 100644
--- a/extensions/browser/verified_contents.cc
+++ b/extensions/browser/verified_contents.cc
@@ -9,6 +9,7 @@
#include "base/json/json_reader.h"
#include "base/strings/string_util.h"
#include "base/values.h"
+#include "components/crx_file/id_util.h"
#include "crypto/signature_verifier.h"
#include "extensions/common/extension.h"
@@ -131,7 +132,7 @@ bool VerifiedContents::InitFrom(const base::FilePath& path,
std::string item_id;
if (!dictionary->GetString(kItemIdKey, &item_id) ||
- !Extension::IdIsValid(item_id))
+ !crx_file::id_util::IdIsValid(item_id))
return false;
extension_id_ = item_id;

Powered by Google App Engine
This is Rietveld 408576698