Chromium Code Reviews| Index: extensions/browser/api/networking_private/networking_private_delegate.h |
| diff --git a/extensions/browser/api/networking_private/networking_private_delegate.h b/extensions/browser/api/networking_private/networking_private_delegate.h |
| index 78ebc32eaf77cbfa3b90d5f537050092584ea948..1e048b1dc87e315b74866a79b47143ad5eb0af39 100644 |
| --- a/extensions/browser/api/networking_private/networking_private_delegate.h |
| +++ b/extensions/browser/api/networking_private/networking_private_delegate.h |
| @@ -164,7 +164,6 @@ class NetworkingPrivateDelegate : public KeyedService { |
| const std::string& puk, |
| const VoidCallback& success_callback, |
| const FailureCallback& failure_callback) = 0; |
| - |
| virtual void SetCellularSimState(const std::string& guid, |
| bool require_pin, |
| const std::string& current_pin, |
| @@ -180,6 +179,12 @@ class NetworkingPrivateDelegate : public KeyedService { |
| // Returns a list of DeviceStateProperties. |
| virtual std::unique_ptr<DeviceStateList> GetDeviceStateList() = 0; |
| + // Returns a dictionary of global policy values (may be empty). Note: the |
| + // dictionary is expected to be a superset of the networkingPrivate |
| + // GlobalPolicy dictionary. Any properties not in GlobalPolicy will be |
| + // ignored. |
| + virtual std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() = 0; |
|
Devlin
2017/01/10 15:25:22
It looks like this is only used in the new API fun
stevenjb
2017/01/10 17:49:39
I guess my main objections to passing const Dictio
Devlin
2017/01/10 18:43:06
Most other methods actually *do* create/modify the
stevenjb
2017/01/10 18:58:29
How strongly do you feel about this?
|
| + |
| // Returns true if the ONC network type |type| is enabled. |
| virtual bool EnableNetworkType(const std::string& type) = 0; |