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

Unified Diff: chrome/common/extensions/docs/experimental.downloads.html

Issue 10413011: redo r137692 and r137791 which were speculatively reverted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/experimental.downloads.html
diff --git a/chrome/common/extensions/docs/experimental.downloads.html b/chrome/common/extensions/docs/experimental.downloads.html
index a1706c6deda42048e2a6507977ba5c7b8071a3a8..32eaf52f8895b2029b40ec9290eee431c7a52e48 100644
--- a/chrome/common/extensions/docs/experimental.downloads.html
+++ b/chrome/common/extensions/docs/experimental.downloads.html
@@ -256,7 +256,7 @@ URLs to be downloaded. For example:</p>
]
}</pre>
<p>If the URL’s hostname is not specified in the permissions, then
-<a href='extension.html#property-lastError'>chrome.extension.lastError</a>
+<a href="extension.html#property-lastError">chrome.extension.lastError</a>
will indicate that the extension does not have permission to access that
hostname. <a href="#properties">downloads.ERROR_*</a> are some of the errors
that may be returned.</p>
@@ -344,23 +344,7 @@ directory. For other examples and for help in viewing the source code, see
<var><span>options</span></var></span><span class="optional"><span>, </span><span>function</span>
<var><span>callback</span></var></span>)</div>
<div class="description">
- <p>Download a URL. If the URL uses the HTTP[S] protocol, then
- the request will include all cookies currently set for its
- hostname. If both <code>filename</code> and <code>saveAs</code>
- are specified, then the Save As dialog will be displayed,
- pre-populated with the specified <code>filename</code>. If the
- download started successfully, <code>callback</code> will be
- called with the new DownloadItem’s <code>downloadId</code>. If
- there was an error starting the download, then
- <code>callback</code> will be called with
- <code>downloadId=undefined</code> and
- <a href='extension.html#property-lastError'>chrome.extension.lastError</a>
- will be set to either one of the <code>ERROR_*</code> constants
- defined above or another descriptive string. The error strings
- are not guaranteed to remain backwards compatible between
- releases. You must not parse it, though you may compare it to
- one of the ERROR_* constants defined above and conditionalize on
- that comparison.</p>
+ <p>Download a URL. If the URL uses the HTTP[S] protocol, then the request will include all cookies currently set for its hostname. If both <code>filename</code> and <code>saveAs</code> are specified, then the Save As dialog will be displayed, pre-populated with the specified <code>filename</code>. If the download started successfully, <code>callback</code> will be called with the new DownloadItem’s <code>downloadId</code>. If there was an error starting the download, then <code>callback</code> will be called with <code>downloadId=undefined</code> and <a href="extension.html#property-lastError">chrome.extension.lastError</a> will be set to either one of the <code>ERROR_*</code> constants defined above or another descriptive string. The error strings are not guaranteed to remain backwards compatible between releases. You must not parse it, though you may compare it to one of the ERROR_* constants defined above and conditionalize on that comparison.</p>
<!-- PARAMETERS -->
<h4>Parameters</h4>
<dl>
« no previous file with comments | « chrome/common/extensions/docs/experimental.html ('k') | chrome/common/extensions/docs/experimental.processes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698