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

Unified Diff: tracing/tracing/ui/base/polymer_preload.html

Issue 2267503002: Import polymer in a single place and remove d3 hacks (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 4 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: tracing/tracing/ui/base/polymer_preload.html
diff --git a/tracing/tracing/ui/base/polymer_preload.html b/tracing/tracing/ui/base/polymer_preload.html
new file mode 100644
index 0000000000000000000000000000000000000000..8860b5befecfd08c1efda82f731a3f3c7fa3a4bb
--- /dev/null
+++ b/tracing/tracing/ui/base/polymer_preload.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<!--
+Copyright 2016 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<script>
+'use strict';
+
+// Force Polymer into native shadowDom mode
+if (window.Polymer)
+ throw new Error('Cannot proceed. Polymer already present.');
+window.Polymer = {};
+window.Polymer.dom = 'shadow';
+</script>

Powered by Google App Engine
This is Rietveld 408576698