| 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.webapps; | 5 package org.chromium.chrome.browser.webapps; |
| 6 | 6 |
| 7 import android.content.Intent; | 7 import android.content.Intent; |
| 8 import android.net.Uri; | 8 import android.net.Uri; |
| 9 | 9 |
| 10 import org.chromium.base.ThreadUtils; | 10 import org.chromium.base.ThreadUtils; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 | 167 |
| 168 /** | 168 /** |
| 169 * Waits for the splash screen to be hidden and return whether it was hidden | 169 * Waits for the splash screen to be hidden and return whether it was hidden |
| 170 * (true) or if it timed out (false). | 170 * (true) or if it timed out (false). |
| 171 */ | 171 */ |
| 172 protected boolean waitUntilSplashscreenHides() throws InterruptedException { | 172 protected boolean waitUntilSplashscreenHides() throws InterruptedException { |
| 173 return CriteriaHelper.pollForCriteria(new Criteria() { | 173 return CriteriaHelper.pollForCriteria(new Criteria() { |
| 174 @Override | 174 @Override |
| 175 public boolean isSatisfied() { | 175 public boolean isSatisfied() { |
| 176 return !getActivity().isSplashScreenVisibleForTest(); | 176 return !getActivity().isSplashScreenVisibleForTests(); |
| 177 } | 177 } |
| 178 }); | 178 }); |
| 179 } | 179 } |
| 180 } | 180 } |
| OLD | NEW |