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

Unified Diff: third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js

Issue 2869233002: [Devtools] Added product registry domain pattern test
Patch Set: rebase Created 3 years, 7 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: third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js
diff --git a/third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js b/third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js
index f693daf0e309d2772010e66dd7eafd60daf63555..c0024fc102672727803527da7e2647c19b67c498 100644
--- a/third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js
+++ b/third_party/WebKit/Source/devtools/front_end/product_registry_impl/ProductRegistryImpl.js
@@ -90,7 +90,7 @@ ProductRegistryImpl._hashForDomain = function(domain) {
ProductRegistryImpl.register = function(productNames, data) {
for (var i = 0; i < data.length; i++) {
var entry = data[i];
- var prefixes = {};
+ var prefixes = ProductRegistryImpl._productsByDomainHash.get(entry.hash) || {};
for (var prefix in entry.prefixes) {
var prefixEntry = entry.prefixes[prefix];
var type = prefixEntry.type !== undefined ? prefixEntry.type : null;

Powered by Google App Engine
This is Rietveld 408576698