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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/DisableHistogramsRule.java

Issue 2766623003: Make Android Clipboard Keep Track of Last Modified Time (Closed)
Patch Set: test works! Created 3 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
Index: chrome/android/junit/src/org/chromium/chrome/browser/DisableHistogramsRule.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/DisableHistogramsRule.java b/chrome/android/junit/src/org/chromium/chrome/browser/DisableHistogramsRule.java
index 506da77e61f8f72153dc512e5d2a64daa84ae2c0..f4a777acad8ecf9b0ba6299dd353b73c136e4245 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/DisableHistogramsRule.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/DisableHistogramsRule.java
@@ -1,4 +1,4 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
+// Copyright 2017 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.
@@ -6,20 +6,20 @@ package org.chromium.chrome.browser;
import org.junit.rules.ExternalResource;
-import org.chromium.base.metrics.RecordHistogram;
+import org.chromium.base.metrics.RecordUserAction;
/**
- * Disables histogram recording for the duration of the tests.
+ * Disables user action recording for the duration of the tests.
*/
-public class DisableHistogramsRule extends ExternalResource {
+public class DisableUserActionRule extends ExternalResource {
@Override
protected void before() throws Throwable {
- RecordHistogram.setDisabledForTests(true);
+ RecordUserAction.setDisabledForTests(true);
}
@Override
protected void after() {
- RecordHistogram.setDisabledForTests(false);
+ RecordUserAction.setDisabledForTests(false);
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698