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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java

Issue 2692203005: Remove unused context in ChromePreferenceManager. (Closed)
Patch Set: Update new use Created 3 years, 10 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/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java
index a3be80cb5f24e7b9ac3c001c0b501249894eda8a..e1db69726aeaf9862544fdff345808abd16382e4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/CtrSuppression.java
@@ -4,8 +4,6 @@
package org.chromium.chrome.browser.contextualsearch;
-import android.content.Context;
-
import org.chromium.base.annotations.CalledByNative;
import org.chromium.chrome.browser.preferences.ChromePreferenceManager;
@@ -29,10 +27,9 @@ public class CtrSuppression extends ContextualSearchHeuristic {
/**
* Constructs an object that tracks impressions and clicks per user to produce CTR and
* impression metrics.
- * @param context An Android Context.
*/
- CtrSuppression(Context context) {
- mPreferenceManager = ChromePreferenceManager.getInstance(context);
+ CtrSuppression() {
+ mPreferenceManager = ChromePreferenceManager.getInstance();
// This needs to be done last in this constructor because the native code may call
// into this object.

Powered by Google App Engine
This is Rietveld 408576698