| 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);
|
| }
|
| -}
|
| +}
|
|
|