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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicyTest.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/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicyTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicyTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicyTest.java
index 84a779f19bb2a5b618ca7008bf705110f8d339b4..f9ca31b9ba77f54a24a91156d5dfe595541ec4b4 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicyTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicyTest.java
@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.contextualsearch;
-import android.content.Context;
import android.support.test.filters.SmallTest;
import org.chromium.base.test.util.CommandLineFlags;
@@ -32,8 +31,7 @@ public class ContextualSearchPolicyTest extends ChromeTabbedActivityTestBase {
getInstrumentation().runOnMainSync(new Runnable() {
@Override
public void run() {
- Context context = getActivity().getApplicationContext();
- mPolicy = new ContextualSearchPolicy(context, null, null);
+ mPolicy = new ContextualSearchPolicy(null, null);
}
});
}

Powered by Google App Engine
This is Rietveld 408576698