diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 17:30:13 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-17 17:30:13 +0000 |
commit | 26300b881aeebb6739504731988b4c51204369ec (patch) | |
tree | 3c01b984e76391a875d74b6907d3db4b642edbf7 /chrome/browser/resources | |
parent | 3c21038e23d741ab88387f44db47b0faed1d75f3 (diff) | |
download | chromium_src-26300b881aeebb6739504731988b4c51204369ec.zip chromium_src-26300b881aeebb6739504731988b4c51204369ec.tar.gz chromium_src-26300b881aeebb6739504731988b4c51204369ec.tar.bz2 |
Don't show "show in foloder" in chrome os.
BUG=chromiun-os:916
TEST=None
Review URL: http://codereview.chromium.org/506045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34837 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r-- | chrome/browser/resources/downloads.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/chrome/browser/resources/downloads.html b/chrome/browser/resources/downloads.html index e5a4187..29f5020 100644 --- a/chrome/browser/resources/downloads.html +++ b/chrome/browser/resources/downloads.html @@ -382,9 +382,15 @@ function Download(download) { this.nodeControls_ = createElementWithClassName('div', 'controls'); this.safe_.appendChild(this.nodeControls_); - this.controlShow_ = createLink(bind(this.show_, this), - localStrings.getString('control_showinfolder')); - this.nodeControls_.appendChild(this.controlShow_); + // We don't need "show in folder" in chromium os. See download_ui.cc and + // http://code.google.com/p/chromium-os/issues/detail?id=916. + var showinfolder = localStrings.getString('control_showinfolder'); + if (showinfolder) { + this.controlShow_ = createLink(bind(this.show_, this), showinfolder); + this.nodeControls_.appendChild(this.controlShow_); + } else { + this.controlShow_ = null; + } // Pause/Resume are a toggle. this.controlPause_ = createLink(bind(this.togglePause_, this), @@ -518,7 +524,9 @@ Download.prototype.update = function(download) { this.nodeProgressBackground_.style.display = 'none'; } - showInline(this.controlShow_, this.state_ == Download.States.COMPLETE); + if (this.controlShow_) { + showInline(this.controlShow_, this.state_ == Download.States.COMPLETE); + } showInline(this.controlPause_, this.state_ == Download.States.IN_PROGRESS); showInline(this.controlResume_, this.state_ == Download.States.PAUSED); showInline(this.controlCancel_, this.state_ == Download.States.IN_PROGRESS || @@ -540,7 +548,9 @@ Download.prototype.update = function(download) { Download.prototype.clear = function() { this.safe_.ondragstart = null; this.nodeFileLink_.onclick = null; - this.controlShow_.onclick = null; + if (this.controlShow_) { + this.controlShow_.onclick = null; + } this.controlCancel_.onclick = null; this.controlPause_.onclick = null; this.controlResume_.onclick = null; |