Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java |
| index 3e96ac6c9d30ea08b4e941c6c39969ba9d5b838d..2f1ebd158daa345686b834431bf2e21373e0e4c5 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java |
| @@ -2065,15 +2065,11 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener, |
| } |
| /** |
| - * Gets the URL of the web page in the tab. When displaying offline page it gets the URL of the |
| - * original page. |
| + * Gets the URL of the web page in the tab. |
|
fgorski
2016/08/15 21:38:32
nit: sinle line:
/** Gets the URL of the web page
jianli
2016/08/15 23:15:43
Done.
|
| */ |
| private String getOnlineUrlFromTab() { |
| Tab currentTab = getCurrentTab(); |
| if (currentTab == null) return ""; |
| - if (currentTab.isOfflinePage()) { |
| - return currentTab.getOriginalUrl().trim(); |
| - } |
| return currentTab.getUrl().trim(); |
| } |