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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwDevToolsServer.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import org.chromium.base.annotations.JNINamespace; 7 import org.chromium.base.annotations.JNINamespace;
8 8
9 /** 9 /**
10 * Controller for Remote Web Debugging (Developer Tools). 10 * Controller for Remote Web Debugging (Developer Tools).
11 */ 11 */
12 @JNINamespace("android_webview") 12 @JNINamespace("android_webview")
13 public class AwDevToolsServer { 13 public class AwDevToolsServer {
14 14
15 private long mNativeDevToolsServer = 0; 15 private long mNativeDevToolsServer;
16 16
17 public AwDevToolsServer() { 17 public AwDevToolsServer() {
18 mNativeDevToolsServer = nativeInitRemoteDebugging(); 18 mNativeDevToolsServer = nativeInitRemoteDebugging();
19 } 19 }
20 20
21 public void destroy() { 21 public void destroy() {
22 nativeDestroyRemoteDebugging(mNativeDevToolsServer); 22 nativeDestroyRemoteDebugging(mNativeDevToolsServer);
23 mNativeDevToolsServer = 0; 23 mNativeDevToolsServer = 0;
24 } 24 }
25 25
26 public void setRemoteDebuggingEnabled(boolean enabled) { 26 public void setRemoteDebuggingEnabled(boolean enabled) {
27 nativeSetRemoteDebuggingEnabled(mNativeDevToolsServer, enabled); 27 nativeSetRemoteDebuggingEnabled(mNativeDevToolsServer, enabled);
28 } 28 }
29 29
30 private native long nativeInitRemoteDebugging(); 30 private native long nativeInitRemoteDebugging();
31 private native void nativeDestroyRemoteDebugging(long devToolsServer); 31 private native void nativeDestroyRemoteDebugging(long devToolsServer);
32 private native void nativeSetRemoteDebuggingEnabled(long devToolsServer, boo lean enabled); 32 private native void nativeSetRemoteDebuggingEnabled(long devToolsServer, boo lean enabled);
33 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698