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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java
index 6733cdc1ae2d0fed2020f3ca852613aa3151df84..32c7b70514992c7ea6561232e29f90bacd5cfced 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/GeolocationTest.java
@@ -92,7 +92,7 @@ public class GeolocationTest extends ChromeActivityTestCaseBase<ChromeActivity>
final CallbackHelper loadCallback = new CallbackHelper();
TabObserver observer = new EmptyTabObserver() {
@Override
- public void onLoadStopped(Tab tab) {
+ public void onLoadStopped(Tab tab, boolean toDifferentDocument) {
// If the device has a cached non-mock location, we won't get back our
// lat/long, so checking that it has "#pass" is sufficient.
if (tab.getUrl().startsWith(url + "#pass|")) {
@@ -129,7 +129,7 @@ public class GeolocationTest extends ChromeActivityTestCaseBase<ChromeActivity>
final CallbackHelper loadCallback0 = new CallbackHelper();
TabObserver observer = new EmptyTabObserver() {
@Override
- public void onLoadStopped(Tab tab) {
+ public void onLoadStopped(Tab tab, boolean toDifferentDocument) {
// If the device has a cached non-mock location, we won't get back our
// lat/long, so checking that it has "#pass" is sufficient.
if (tab.getUrl().startsWith(url + "#pass|0|")) {
@@ -153,7 +153,7 @@ public class GeolocationTest extends ChromeActivityTestCaseBase<ChromeActivity>
final CallbackHelper loadCallback1 = new CallbackHelper();
observer = new EmptyTabObserver() {
@Override
- public void onLoadStopped(Tab tab) {
+ public void onLoadStopped(Tab tab, boolean toDifferentDocument) {
// If the device has a cached non-mock location, we won't get back our
// lat/long, so checking that it has "#pass" is sufficient.
if (tab.getUrl().startsWith(url + "#pass|1|")) {

Powered by Google App Engine
This is Rietveld 408576698