Commit 2338a2e9 authored by Newton Allen's avatar Newton Allen

Add @VisibleForTesting to fix ChromePublic release build.

These two methods were being obfuscated or removed by proguard, which
cause the release build to fail for chrome_public_test_apk.

BUG=484934
R=pvalenzuela@chromium.org

Review URL: https://codereview.chromium.org/1150853003

Cr-Commit-Position: refs/heads/master@{#330869}
parent 09d36956
...@@ -69,6 +69,7 @@ public class ProfileSyncService { ...@@ -69,6 +69,7 @@ public class ProfileSyncService {
} }
// Returns the result of GetAllNodes as a JSONArray. // Returns the result of GetAllNodes as a JSONArray.
@VisibleForTesting
public JSONArray getNodesAsJsonArray() throws JSONException { public JSONArray getNodesAsJsonArray() throws JSONException {
return new JSONArray(mNodesString); return new JSONArray(mNodesString);
} }
...@@ -624,6 +625,7 @@ public class ProfileSyncService { ...@@ -624,6 +625,7 @@ public class ProfileSyncService {
* Retrieves a JSON version of local Sync data via the native GetAllNodes method. * Retrieves a JSON version of local Sync data via the native GetAllNodes method.
* This method is asynchronous; the result will be sent to the callback. * This method is asynchronous; the result will be sent to the callback.
*/ */
@VisibleForTesting
public void getAllNodes(GetAllNodesCallback callback) { public void getAllNodes(GetAllNodesCallback callback) {
nativeGetAllNodes(mNativeProfileSyncServiceAndroid, callback); nativeGetAllNodes(mNativeProfileSyncServiceAndroid, callback);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment