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

Unified Diff: chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js

Issue 9212044: Improving `content_security_policy` documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Meggin's feedback. Created 8 years, 11 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: chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js
diff --git a/chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js b/chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js
deleted file mode 100644
index 06945ceef68151a70a84bce999ba608563b7ce5f..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/docs/examples/tutorials/analytics/analytics.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Copyright (c) 2010 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.
- *
- * Below is a modified version of the Google Analytics asynchronous tracking
- * code snippet. It has been modified to pull the HTTPS version of ga.js
- * instead of the default HTTP version. It is recommended that you use this
- * snippet instead of the standard tracking snippet provided when setting up
- * a Google Analytics account.
- *
- * See http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
- * for information on how to use the asynchronous tracking API.
- *
- * If you wish to use this file in your own extension, replace UA-12026369-1
- * with your own Google Analytics account number. Note that the default code
- * will automatically track a page view for any page this file is included in.
- *
- * When including this file in your code, the best practice is to insert the
- * <script src="analytics.js"></script> include at the top of the <body>
- * section of your pages, after the opening <body> tag.
- */
-
-var _gaq = _gaq || [];
-_gaq.push(['_setAccount', 'UA-12026369-1']);
-_gaq.push(['_trackPageview']);
-
-(function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = 'https://ssl.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-})();

Powered by Google App Engine
This is Rietveld 408576698