Fixed the moblab setup save.

BUG=chromium:611939
TEST=manual tested

Change-Id: If0f8d93463a1968f2d40e77d1990c61191c3bb43
Reviewed-on: https://chromium-review.googlesource.com/344638
Commit-Ready: Michael Tang <ntang@chromium.org>
Tested-by: Michael Tang <ntang@chromium.org>
Reviewed-by: Stephen Lin <stephenlin@google.com>
Reviewed-by: Michael Tang <ntang@chromium.org>
(cherry picked from commit e5653cf6ce7fa70458eb2e5ddf4bd784a0240983)
Reviewed-on: https://chromium-review.googlesource.com/344806
Reviewed-by: Krk Mohan <krk@google.com>
Commit-Queue: Michael Tang <ntang@chromium.org>
Trybot-Ready: Michael Tang <ntang@chromium.org>
diff --git a/frontend/client/src/autotest/moblab/ConfigSettingsView.java b/frontend/client/src/autotest/moblab/ConfigSettingsView.java
index 67acee7..576ab68 100644
--- a/frontend/client/src/autotest/moblab/ConfigSettingsView.java
+++ b/frontend/client/src/autotest/moblab/ConfigSettingsView.java
@@ -91,7 +91,6 @@
         submitConfirmButton = new Button("Confirm Save", new ClickHandler() {
             @Override
             public void onClick(ClickEvent event) {
-                JSONObject params = new JSONObject();
                 JSONObject configValues = new JSONObject();
                 for (Entry<String, HashMap<String, TextBox> > sections : configValueTextBoxes.entrySet()) {
                     JSONArray sectionValue = new JSONArray();
@@ -103,8 +102,7 @@
                     }
                     configValues.put(sections.getKey(), sectionValue);
                 }
-                params.put("config_values", configValues);
-                rpcCallSubmit(params);
+                rpcCallSubmit(configValues);
                 submitConfirmPanel.hide();
             }
         });
@@ -179,8 +177,8 @@
         }
     }
 
-    public void rpcCallSubmit(JSONObject params) {
-        MoblabRpcHelper.submitConfigData(params, new JsonRpcCallback() {
+    public void rpcCallSubmit(JSONObject configValues) {
+        MoblabRpcHelper.submitConfigData(configValues, new JsonRpcCallback() {
             @Override
             public void onSuccess(JSONValue result) {
                 NotifyManager.getInstance().showMessage("Setup completed.");