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

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

Issue 1812103004: [Offline pages] Minimizing exposure to ChromeActivity in offline pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing bookmark id from offline page tab observer Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtils.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
index 69247e9a2b4a38ddd5ab016ab7e1a9c4b31d1182..4bfa62a749506497a58ec8f39bedb51d7508b7b5 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
@@ -173,8 +173,9 @@ public class OfflinePageUtilsTest extends ChromeActivityTestCaseBase<ChromeActiv
@Override
public void run() {
Log.d(TAG, "Showing offline snackbar from UI thread");
- OfflinePageUtils.showOfflineSnackbarIfNecessary(
- getActivity(), getActivity().getActivityTab(), mockSnackbarController);
+ OfflinePageUtils.showOfflineSnackbarIfNecessary(getActivity().getBaseContext(),
+ getActivity().getSnackbarManager(), getActivity().getActivityTab(),
+ mockSnackbarController);
// Pretend that we went online, this should cause the snackbar to show.
// This call will set the isConnected call to return true.
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtils.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698