Chromium Code Reviews| Index: chrome/browser/resources/pdf/navigator.js |
| diff --git a/chrome/browser/resources/pdf/navigator.js b/chrome/browser/resources/pdf/navigator.js |
| index 57c15d4d26c47c983f83a839c766cb79d22f9dfe..74dde0d930954f13f5e95aed460a2d18055f626d 100644 |
| --- a/chrome/browser/resources/pdf/navigator.js |
| +++ b/chrome/browser/resources/pdf/navigator.js |
| @@ -71,15 +71,9 @@ Navigator.prototype = { |
| return; |
| } |
| - if (newTab) { |
| + if (newTab) |
| this.navigateInNewTabCallback_(url); |
| - } else { |
| - var pageNumber = |
| - this.paramsParser_.getViewportFromUrlParams(url).page; |
| - if (pageNumber != undefined) |
| - this.viewport_.goToPage(pageNumber); |
| - else |
| - this.navigateInCurrentTabCallback_(url); |
| - } |
|
raymes
2015/02/12 22:19:04
None of this should be removed. Instead the code s
|
| + else |
| + this.navigateInCurrentTabCallback_(url); |
| } |
| }; |