Commit 5e5bc7ac authored by dpapad's avatar dpapad Committed by Commit Bot

Files app: Remove remaining traces of third_party/analytics

Bug: 847729
Change-Id: I31ab35f815a578d236eff6a75fdfa45a3a6df89f
Reviewed-on: https://chromium-review.googlesource.com/c/1351507Reviewed-by: default avatarStuart Langley <slangley@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611018}
parent be589e1c
...@@ -18,10 +18,6 @@ window.JSErrorCount = 0; ...@@ -18,10 +18,6 @@ window.JSErrorCount = 0;
* Count uncaught exceptions. * Count uncaught exceptions.
*/ */
window.onerror = function(message, url) { window.onerror = function(message, url) {
// Analytics raises errors if the tracker instance is initiated in guest mode.
// crbug.com/459983
if (url === 'chrome://resources/js/analytics.js')
return;
window.JSErrorCount++; window.JSErrorCount++;
}; };
......
...@@ -195,7 +195,6 @@ ...@@ -195,7 +195,6 @@
"app": { "app": {
"background": { "background": {
"scripts": [ "scripts": [
"chrome://resources/js/analytics.js",
"chrome://resources/js/cr.js", "chrome://resources/js/cr.js",
"chrome://resources/js/cr/event_target.js", "chrome://resources/js/cr/event_target.js",
"chrome://resources/js/cr/ui/array_data_model.js", "chrome://resources/js/cr/ui/array_data_model.js",
......
...@@ -81,10 +81,6 @@ def includes2scripts(include_filename): ...@@ -81,10 +81,6 @@ def includes2scripts(include_filename):
continue continue
if l.startswith('// <include '): if l.startswith('// <include '):
l = l.replace('// <include ', '<script ') l = l.replace('// <include ', '<script ')
# Special fix for analytics.
if 'webui/resources/js/analytics.js' in l:
l = l.replace('webui/resources/js/analytics.js',
'../third_party/analytics/google-analytics-bundle.js')
# main.js should be defer. # main.js should be defer.
if 'src="main.js"' in l: if 'src="main.js"' in l:
l = l.replace('src="main.js"', 'src="main.js" defer') l = l.replace('src="main.js"', 'src="main.js" defer')
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
<!-- Common Scripts. --> <!-- Common Scripts. -->
<include name="IDR_FILE_MANAGER_BACKGROUND_COMMON_JS" file="file_manager/background/js/background_common_scripts.js" flattenhtml="true" type="BINDATA" /> <include name="IDR_FILE_MANAGER_BACKGROUND_COMMON_JS" file="file_manager/background/js/background_common_scripts.js" flattenhtml="true" type="BINDATA" />
<include name="IDR_FILE_MANAGER_BACKGROUND_RUNTIME_LOADED_TEST_UTIL_JS" file="file_manager/background/js/runtime_loaded_test_util.js" flattenhtml="true" type="BINDATA" /> <include name="IDR_FILE_MANAGER_BACKGROUND_RUNTIME_LOADED_TEST_UTIL_JS" file="file_manager/background/js/runtime_loaded_test_util.js" flattenhtml="true" type="BINDATA" />
<include name="IDR_FILE_MANAGER_ANALYTICS_JS" file="../webui/resources/js/analytics.js" flattenhtml="false" type="BINDATA" />
<!-- Polymer elements --> <!-- Polymer elements -->
<include name="IDR_FILE_MANAGER_ELEMENTS_ELEMENTS_BUNDLE_HTML" file="file_manager/foreground/elements/elements_bundle.html" type="BINDATA" /> <include name="IDR_FILE_MANAGER_ELEMENTS_ELEMENTS_BUNDLE_HTML" file="file_manager/foreground/elements/elements_bundle.html" type="BINDATA" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment