| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.tab; | 5 package org.chromium.chrome.browser.tab; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.support.test.filters.SmallTest; |
| 8 import android.widget.Button; | 8 import android.widget.Button; |
| 9 | 9 |
| 10 import org.chromium.base.ThreadUtils; | 10 import org.chromium.base.ThreadUtils; |
| 11 import org.chromium.base.test.util.Feature; | 11 import org.chromium.base.test.util.Feature; |
| 12 import org.chromium.base.test.util.RetryOnFailure; | 12 import org.chromium.base.test.util.RetryOnFailure; |
| 13 import org.chromium.chrome.R; | 13 import org.chromium.chrome.R; |
| 14 import org.chromium.chrome.browser.ChromeActivity; | 14 import org.chromium.chrome.browser.ChromeActivity; |
| 15 import org.chromium.chrome.test.ChromeActivityTestCaseBase; | 15 import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
| 16 | 16 |
| 17 /** | 17 /** |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 * @param tab The tab that needs to contain a SadTabView. | 120 * @param tab The tab that needs to contain a SadTabView. |
| 121 * @return Returns the button that is on the SadTabView, null if SadTabView. | 121 * @return Returns the button that is on the SadTabView, null if SadTabView. |
| 122 * doesn't exist. | 122 * doesn't exist. |
| 123 */ | 123 */ |
| 124 private Button getSadTabButton(Tab tab) { | 124 private Button getSadTabButton(Tab tab) { |
| 125 return (Button) tab.getContentViewCore().getContainerView() | 125 return (Button) tab.getContentViewCore().getContainerView() |
| 126 .findViewById(R.id.sad_tab_reload_button); | 126 .findViewById(R.id.sad_tab_reload_button); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } | 129 } |
| OLD | NEW |