Chromium Code Reviews| Index: chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubOfflinePageUtils.java |
| diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubOfflinePageUtils.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubOfflinePageUtils.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1497ff9aef6538cced6550e6a0ee973ced4d3966 |
| --- /dev/null |
| +++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubOfflinePageUtils.java |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.chrome.browser.offlinepages; |
| + |
| +import android.content.Context; |
| + |
| +/** |
| + * Custom stub for our own OfflinePageUtils. |
| + */ |
| +public class StubOfflinePageUtils extends OfflinePageUtils { |
|
dewittj
2016/06/03 21:21:49
Is this class used?
Pete Williamson
2016/06/03 22:14:18
Leftover from earlier attempt. Removed.
|
| + private static boolean sRecordWakeupUMACalled = false; |
| + |
| + public static boolean getRecordWakeupUMACalled() { |
| + return sRecordWakeupUMACalled; |
| + } |
| + |
| + public static void recordWakeupUMA(Context context, long timestamp) { |
| + sRecordWakeupUMACalled = true; |
| + } |
| +} |