| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.download; | 5 package org.chromium.chrome.browser.download; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.support.v7.widget.Toolbar; | 8 import android.support.v7.widget.Toolbar; |
| 9 import android.view.View; | 9 import android.view.View; |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 public int getVerticalScrollOffset() { | 71 public int getVerticalScrollOffset() { |
| 72 return mDownloadManager.getVerticalScrollOffset(); | 72 return mDownloadManager.getVerticalScrollOffset(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 @Override | 75 @Override |
| 76 public void destroy() { | 76 public void destroy() { |
| 77 mDownloadManager.onDestroyed(); | 77 mDownloadManager.onDestroyed(); |
| 78 mDownloadManager = null; | 78 mDownloadManager = null; |
| 79 ApplicationStatus.unregisterActivityStateListener(mActivityStateListener
); | 79 ApplicationStatus.unregisterActivityStateListener(mActivityStateListener
); |
| 80 } | 80 } |
| 81 |
| 82 @Override |
| 83 public String getMetricsName() { |
| 84 return "Downloads"; |
| 85 } |
| 81 } | 86 } |
| OLD | NEW |