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

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

Issue 2879943003: DevTools: render product badges behind the setting. (Closed)
Patch Set: removed module from the list. 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..e6bcbbd92f255321d3b87d9ad9243f8c8c53c05a 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
@@ -27,7 +27,7 @@ ProductRegistryImpl.Registry = class {
* @return {?ProductRegistry.Registry.ProductEntry}
*/
entryForUrl(parsedUrl) {
- if (parsedUrl.isDataURL())
+ if (parsedUrl.isDataURL() || !parsedUrl.isValid)
return null;
// TODO(allada) This should be expanded to allow paths as as well as domain to find a product.
var productsByDomainHash = ProductRegistryImpl._productsByDomainHash;

Powered by Google App Engine
This is Rietveld 408576698