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

Unified Diff: third_party/WebKit/Source/devtools/scripts/build/build_release_applications.py

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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/scripts/build/build_release_applications.py
diff --git a/third_party/WebKit/Source/devtools/scripts/build/build_release_applications.py b/third_party/WebKit/Source/devtools/scripts/build/build_release_applications.py
index af89d8afad32d7c9284f8ab5854176dd0f9922f8..e095c3853400c8239369bca53fe860e165eb46f6 100755
--- a/third_party/WebKit/Source/devtools/scripts/build/build_release_applications.py
+++ b/third_party/WebKit/Source/devtools/scripts/build/build_release_applications.py
@@ -189,7 +189,13 @@ class ReleaseBuilder(object):
non_autostart_deps = deps & non_autostart
if len(non_autostart_deps):
bail_error('Non-autostart dependencies specified for the autostarted module "%s": %s' % (name, non_autostart_deps))
+
+ namespace = name.replace('_lazy', '')
+ if namespace == 'sdk' or namespace == 'ui':
+ namespace = namespace.upper();
+ namespace = "".join(map(lambda x: x[0].upper() + x[1:], namespace.split('_')))
output.write('\n/* Module %s */\n' % name)
+ output.write('\nself[\'%s\'] = self[\'%s\'] || {};\n' % (namespace, namespace))
modular_build.concatenate_scripts(desc.get('scripts'), join(self.application_dir, name), self.output_dir, output)
else:
non_autostart.add(name)

Powered by Google App Engine
This is Rietveld 408576698