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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/rlz/RevenueStats.java

Issue 2697933002: Remove factory methods from ChromeApplication. (Closed)
Patch Set: Rebase 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/rlz/RevenueStats.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/rlz/RevenueStats.java b/chrome/android/java/src/org/chromium/chrome/browser/rlz/RevenueStats.java
index e32a64e65d7849b7514a2cfb892e2f7f36120b49..6ec03e1dd9d759a765d7277f322b606c2281c242 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/rlz/RevenueStats.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/rlz/RevenueStats.java
@@ -9,7 +9,7 @@ import android.content.SharedPreferences;
import org.chromium.base.ContextUtils;
import org.chromium.base.annotations.JNINamespace;
-import org.chromium.chrome.browser.ChromeApplication;
+import org.chromium.chrome.browser.AppHooks;
import org.chromium.chrome.browser.tab.Tab;
import java.util.concurrent.atomic.AtomicReference;
@@ -29,9 +29,7 @@ public class RevenueStats {
*/
public static RevenueStats getInstance() {
if (sInstance.get() == null) {
- ChromeApplication application =
- (ChromeApplication) ContextUtils.getApplicationContext();
- sInstance.compareAndSet(null, application.createRevenueStatsInstance());
+ sInstance.compareAndSet(null, AppHooks.get().createRevenueStatsInstance());
}
return sInstance.get();
}

Powered by Google App Engine
This is Rietveld 408576698