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

Side by Side Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package com.android.webview.chromium; 5 package com.android.webview.chromium;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.Intent; 10 import android.content.Intent;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 private DrawGLFunctor mGLfunctor; 98 private DrawGLFunctor mGLfunctor;
99 99
100 private final WebView.HitTestResult mHitTestResult; 100 private final WebView.HitTestResult mHitTestResult;
101 101
102 private final int mAppTargetSdkVersion; 102 private final int mAppTargetSdkVersion;
103 103
104 private WebViewChromiumFactoryProvider mFactory; 104 private WebViewChromiumFactoryProvider mFactory;
105 105
106 private final boolean mShouldDisableThreadChecking; 106 private final boolean mShouldDisableThreadChecking;
107 107
108 private static boolean sRecordWholeDocumentEnabledByApi = false; 108 private static boolean sRecordWholeDocumentEnabledByApi;
109 static void enableSlowWholeDocumentDraw() { 109 static void enableSlowWholeDocumentDraw() {
110 sRecordWholeDocumentEnabledByApi = true; 110 sRecordWholeDocumentEnabledByApi = true;
111 } 111 }
112 112
113 // This does not touch any global / non-threadsafe state, but note that 113 // This does not touch any global / non-threadsafe state, but note that
114 // init is ofter called right after and is NOT threadsafe. 114 // init is ofter called right after and is NOT threadsafe.
115 public WebViewChromium(WebViewChromiumFactoryProvider factory, WebView webVi ew, 115 public WebViewChromium(WebViewChromiumFactoryProvider factory, WebView webVi ew,
116 WebView.PrivateAccess webViewPrivate, boolean shouldDisableThreadChe cking) { 116 WebView.PrivateAccess webViewPrivate, boolean shouldDisableThreadChe cking) {
117 WebViewChromiumFactoryProvider.checkStorageIsNotDeviceProtected(webView. getContext()); 117 WebViewChromiumFactoryProvider.checkStorageIsNotDeviceProtected(webView. getContext());
118 mWebView = webView; 118 mWebView = webView;
(...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 mAwContents.extractSmartClipData(x, y, width, height); 2274 mAwContents.extractSmartClipData(x, y, width, height);
2275 } 2275 }
2276 2276
2277 // Implements SmartClipProvider 2277 // Implements SmartClipProvider
2278 @Override 2278 @Override
2279 public void setSmartClipResultHandler(final Handler resultHandler) { 2279 public void setSmartClipResultHandler(final Handler resultHandler) {
2280 checkThread(); 2280 checkThread();
2281 mAwContents.setSmartClipResultHandler(resultHandler); 2281 mAwContents.setSmartClipResultHandler(resultHandler);
2282 } 2282 }
2283 } 2283 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698