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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.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/physicalweb/PhysicalWebBleClient.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
index da6820b9acc30fc5f3b95081d329a475899bc729..3d11203dee07036d48ff49d3d6fa16f453e0c3a8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBleClient.java
@@ -14,10 +14,8 @@ import com.google.android.gms.nearby.messages.Message;
import com.google.android.gms.nearby.messages.MessageFilter;
import com.google.android.gms.nearby.messages.MessageListener;
-import org.chromium.base.ContextUtils;
import org.chromium.base.Log;
-import org.chromium.chrome.browser.ChromeApplication;
-
+import org.chromium.chrome.browser.AppHooks;
/**
* The Client that harvests URLs from BLE signals.
@@ -70,8 +68,7 @@ public class PhysicalWebBleClient {
*/
public static PhysicalWebBleClient getInstance() {
if (sInstance == null) {
- sInstance = ((ChromeApplication) ContextUtils.getApplicationContext())
- .createPhysicalWebBleClient();
+ sInstance = AppHooks.get().createPhysicalWebBleClient();
}
return sInstance;
}

Powered by Google App Engine
This is Rietveld 408576698