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

Unified Diff: third_party/closure_compiler/interfaces/networking_private_interface.js

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Add dcheck Created 3 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: third_party/closure_compiler/interfaces/networking_private_interface.js
diff --git a/third_party/closure_compiler/interfaces/networking_private_interface.js b/third_party/closure_compiler/interfaces/networking_private_interface.js
index 97d8718f4d4b3bae6b93ea8839dba633eeeb684a..9e0ac6795a2267952bfa304685ba897954accc8a 100644
--- a/third_party/closure_compiler/interfaces/networking_private_interface.js
+++ b/third_party/closure_compiler/interfaces/networking_private_interface.js
@@ -1,4 +1,4 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
+// Copyright 2017 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.
@@ -251,6 +251,7 @@ NetworkingPrivate.prototype = {
* operation succeeds (|puk| is valid), the PIN will be set to |pin|. (If
* |pin| is empty or invalid the operation will fail).
* @param {string} networkGuid The GUID of the cellular network to unlock.
+ * If empty, the default cellular device will be used.
* @param {string} pin The current SIM PIN, or the new PIN if PUK is provided.
* @param {string=} puk The operator provided PUK for unblocking a blocked
* SIM.
@@ -268,13 +269,21 @@ NetworkingPrivate.prototype = {
* unlockCellularSim() before this can be called (otherwise it will fail and
* chrome.runtime.lastError will be set to Error.SimLocked).
* @param {string} networkGuid The GUID of the cellular network to set the SIM
- * state of.
+ * state of. If empty, the default cellular device will be used.
* @param {!chrome.networkingPrivate.CellularSimState} simState The SIM state
* to set.
* @param {function():void=} callback Called when the operation has completed.
* @see https://developer.chrome.com/extensions/networkingPrivate#method-setCellularSimState
*/
setCellularSimState: assertNotReached,
+
+ /**
+ * Gets the global policy properties. These properties are not expected to
+ * change during a session.
+ * @param {function(!chrome.networkingPrivate.GlobalPolicy):void} callback
+ * @see https://developer.chrome.com/extensions/networkingPrivate#method-getGlobalPolicy
+ */
+ getGlobalPolicy: assertNotReached,
};
/**

Powered by Google App Engine
This is Rietveld 408576698