diff options
author | cernekee <cernekee@chromium.org> | 2016-02-09 14:39:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-09 22:41:18 +0000 |
commit | fbcb5dee51bebbd01fc7ace6ebe6d9713a0624ca (patch) | |
tree | 6c1f86bcc33fdd5b7787e3d45c0b37485612fa5f /extensions/common | |
parent | 4a12e67ac24b290e3da1ce7403bcd73be0a4dc8e (diff) | |
download | chromium_src-fbcb5dee51bebbd01fc7ace6ebe6d9713a0624ca.zip chromium_src-fbcb5dee51bebbd01fc7ace6ebe6d9713a0624ca.tar.gz chromium_src-fbcb5dee51bebbd01fc7ace6ebe6d9713a0624ca.tar.bz2 |
Fix error in vpnProvider API docs
The argument to the createConfig() callback is an undefined variable
on error. It is not an empty string.
BUG=580760
TEST=chrome.vpnProvider.createConfig("", function(x) {
console.debug(typeof(x)); })
TEST=chrome.vpnProvider.createConfig("duplicate_name", function(x) {
console.debug(typeof(x)); })
Review URL: https://codereview.chromium.org/1628763002
Cr-Commit-Position: refs/heads/master@{#374504}
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/api/vpn_provider.idl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/common/api/vpn_provider.idl b/extensions/common/api/vpn_provider.idl index ef0e947..a826522 100644 --- a/extensions/common/api/vpn_provider.idl +++ b/extensions/common/api/vpn_provider.idl @@ -83,7 +83,8 @@ namespace vpnProvider { // The callback is used by <code>createConfig</code> to signal completion. // The callback is called with <code>chrome.runtime.lastError</code> set to // an error code if there is an error. - // |id|: A unique ID for the created configuration, empty string on failure. + // |id|: A unique ID for the created configuration, or <code>undefined</code> + // on failure. [inline_doc] callback CreateConfigCompleteCallback = void (DOMString id); interface Functions { |