| Index: chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java
|
| index fc27d3938b531d20d7fcb45d69b1b4b618ce9fd6..103f8a7610c08ab765a32697b09c459c8010af0b 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBarTest.java
|
| @@ -68,7 +68,7 @@ public class SearchGeolocationDisclosureInfoBarTest
|
| // Infobar should appear when doing the first search.
|
| InfoBarContainer container = getActivity().getActivityTab().getInfoBarContainer();
|
| InfoBarTestAnimationListener listener = new InfoBarTestAnimationListener();
|
| - container.setAnimationListener(listener);
|
| + container.addAnimationListener(listener);
|
| loadUrl(mTestServer.getURL(SEARCH_PAGE));
|
| // Note: the number of infobars is checked immediately after the URL is loaded, unlike in
|
| // other infobar tests where it is checked after animations have completed. This is because
|
| @@ -89,7 +89,7 @@ public class SearchGeolocationDisclosureInfoBarTest
|
| // Infobar should appear again the next day.
|
| SearchGeolocationDisclosureTabHelper.setDayOffsetForTesting(1);
|
| listener = new InfoBarTestAnimationListener();
|
| - container.setAnimationListener(listener);
|
| + container.addAnimationListener(listener);
|
| loadUrl(mTestServer.getURL(SEARCH_PAGE));
|
| assertEquals("Wrong infobar count after search", 1, getInfoBars().size());
|
| listener.addInfoBarAnimationFinished("InfoBar not added.");
|
| @@ -102,7 +102,7 @@ public class SearchGeolocationDisclosureInfoBarTest
|
| // Infobar should appear again the next day.
|
| SearchGeolocationDisclosureTabHelper.setDayOffsetForTesting(2);
|
| listener = new InfoBarTestAnimationListener();
|
| - container.setAnimationListener(listener);
|
| + container.addAnimationListener(listener);
|
| loadUrl(mTestServer.getURL(SEARCH_PAGE));
|
| assertEquals("Wrong infobar count after search", 1, getInfoBars().size());
|
| listener.addInfoBarAnimationFinished("InfoBar not added.");
|
| @@ -136,7 +136,7 @@ public class SearchGeolocationDisclosureInfoBarTest
|
| // Infobar should appear when doing the first search.
|
| InfoBarContainer container = getActivity().getActivityTab().getInfoBarContainer();
|
| InfoBarTestAnimationListener listener = new InfoBarTestAnimationListener();
|
| - container.setAnimationListener(listener);
|
| + container.addAnimationListener(listener);
|
| loadUrl(mTestServer.getURL(SEARCH_PAGE));
|
| assertEquals("Wrong infobar count after search", 1, getInfoBars().size());
|
| listener.addInfoBarAnimationFinished("InfoBar not added.");
|
|
|