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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java

Issue 2828353002: Android: Remove GetApplicationContext part 3 (Closed)
Patch Set: Fix android webview tests Created 3 years, 8 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
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
index 490a83f3e8f3d5181c63e9b30a5d83588f5149a3..2cc39b97ca69acee6a4ae5f7b6d975c90e36661c 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -329,7 +329,7 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
private void doNetworkInitializations(Context applicationContext) {
if (applicationContext.checkPermission(Manifest.permission.ACCESS_NETWORK_STATE,
Process.myPid(), Process.myUid()) == PackageManager.PERMISSION_GRANTED) {
- NetworkChangeNotifier.init(applicationContext);
+ NetworkChangeNotifier.init();
NetworkChangeNotifier.setAutoDetectConnectivityState(
new AwNetworkChangeNotifierRegistrationPolicy());
}
@@ -645,7 +645,7 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
}
public TokenBindingService getTokenBindingService() {
- synchronized (mLock) {
+ synchronized (mLock) {
if (mTokenBindingManager == null) {
mTokenBindingManager = new TokenBindingManagerAdapter(this);
}
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/ContentViewMiscTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698