summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorDan Beam <dbeam@chromium.org>2015-05-13 18:05:25 -0700
committerDan Beam <dbeam@chromium.org>2015-05-14 01:06:20 +0000
commitb14dd880605aa62a2447d787d9632844b0749a1e (patch)
tree70c3def7a5496328035c832b1bf083558e7ed19e /third_party
parenta42db114bb2cf8ed04556e8755b7689a492d4b35 (diff)
downloadchromium_src-b14dd880605aa62a2447d787d9632844b0749a1e.zip
chromium_src-b14dd880605aa62a2447d787d9632844b0749a1e.tar.gz
chromium_src-b14dd880605aa62a2447d787d9632844b0749a1e.tar.bz2
Bumping closure compiler:
chrome_extensions.js: be4926041286f314d648ab5f3fcce5721693e602 -> ca37fefd29fef41fa481685c4b3398ba6ad10b8d Also manually added networkingPrivate.onDeviceStateListChanged while it makes its way to the github externs (to fix compile). TBR= BUG= Review URL: https://codereview.chromium.org/1134693004 Cr-Commit-Position: refs/heads/master@{#329767}
Diffstat (limited to 'third_party')
-rw-r--r--third_party/closure_compiler/externs/chrome_extensions.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/closure_compiler/externs/chrome_extensions.js b/third_party/closure_compiler/externs/chrome_extensions.js
index d5b19d5..7a58921 100644
--- a/third_party/closure_compiler/externs/chrome_extensions.js
+++ b/third_party/closure_compiler/externs/chrome_extensions.js
@@ -189,6 +189,18 @@
*/
+/*
+ * Ensure projects don't execute this file.
+ * The throw is to catch executions of this file, however, without the guard,
+ * the compiler's flow analysis stops at the throw, even for an externs file.
+ * Therefore, the Math.random() guard fools the compiler during externs
+ * processing.
+ */
+if (Math.random() < 1) { // always true but the compiler doesn't know that
+ throw 'Externs file "chrome_extensions.js" should not be executed';
+}
+
+
/**
* @see https://developer.chrome.com/extensions/accessibilityFeatures
* @const
@@ -2084,6 +2096,11 @@ chrome.runtime.id;
chrome.runtime.getBackgroundPage = function(callback) {};
+/**
+ * @param {function(): void=} opt_callback Callback function.
+ */
+chrome.runtime.openOptionsPage = function(opt_callback) {};
+
/**
* Manifest information returned from chrome.runtime.getManifest. See
@@ -8949,6 +8966,10 @@ chrome.networkingPrivate.onNetworksChanged;
chrome.networkingPrivate.onNetworkListChanged;
+/** @type {!ChromeStringArrayEvent} */
+chrome.networkingPrivate.onDeviceStateListChanged;
+
+
/** @type {!ChromeStringStringEvent} */
chrome.networkingPrivate.onPortalDetectionCompleted;