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

Unified Diff: tools/dom/scripts/systemhtml.py

Issue 142563006: Make the Dart code generators handle the Image constructor specified in the IDL without crashing or… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « tools/dom/scripts/htmldartgenerator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index c5c0434515d9114e4c40ca5bfb885292ccca8036..54ad00d318651af9c6ed565cc49d63baab7f9907 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -512,10 +512,10 @@ class HtmlDartInterfaceGenerator(object):
for info in infos:
constructors.append(info.ConstructorInfo(self._interface.id))
- if factory_provider:
- assert factory_provider == info.factory_provider_name
- else:
- factory_provider = info.factory_provider_name
+ if factory_provider and factory_provider != info.factory_provider_name:
+ _logger.warn('Conflicting factory provider names: %s != %s' %
+ (factory_provider, info.factory_provider_name))
+ factory_provider = info.factory_provider_name
implementation_emitter = self._ImplementationEmitter()
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698