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

Unified Diff: extensions/common/features/feature.cc

Issue 2116293003: extensions: Generate hash of extension ID at a higher level Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/features/feature.cc
diff --git a/extensions/common/features/feature.cc b/extensions/common/features/feature.cc
index dc28d6dff8f3eee4cd4e548b24f0adbd5bc23c37..b02b98f627ab00367cdde162f5f33e3421cf9ac9 100644
--- a/extensions/common/features/feature.cc
+++ b/extensions/common/features/feature.cc
@@ -33,10 +33,10 @@ Feature::Platform Feature::GetCurrentPlatform() {
Feature::Availability Feature::IsAvailableToExtension(
const Extension* extension) const {
- return IsAvailableToManifest(extension->id(),
- extension->GetType(),
- extension->location(),
- extension->manifest_version());
+ return IsAvailableToManifest(extension->id(), HashedIdInHex(extension->id()),
+ extension->GetType(), extension->location(),
+ extension->manifest_version(),
+ GetCurrentPlatform());
}
Feature::Availability Feature::IsAvailableToEnvironment() const {
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698