Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/tab/SadTabTest.java

Issue 2866273003: [Android] Improve sad tab strings (Closed)
Patch Set: Changes from tedchoc@ review Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.support.test.filters.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;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 }); 115 });
116 } 116 }
117 117
118 /** 118 /**
119 * If there is a SadTabView, this method will get the button for the sad tab . 119 * If there is a SadTabView, this method will get the button for the sad tab .
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().findViewById (
126 .findViewById(R.id.sad_tab_reload_button); 126 R.id.sad_tab_button);
127 } 127 }
128 128
129 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698