make_factory_toolkit.sh: fix no-host_based mode installer

Installer should not install run_goofy_{device,presenter} tag when
we are in no-host_based mode.

BUG=none
TEST=run with `--nohost_based` option and check if the tag is present

Change-Id: I7767ae0bd84129ec081e6ff328db6312e4b4d61a
Reviewed-on: https://chromium-review.googlesource.com/230152
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
diff --git a/make_factory_toolkit.sh b/make_factory_toolkit.sh
index 5e3ce9f..99fdc47 100755
--- a/make_factory_toolkit.sh
+++ b/make_factory_toolkit.sh
@@ -101,9 +101,15 @@
     "${symlink_dst}" "${symlink_file}" || \
     die "Unable to symlink ${symlink_dst} to ${symlink_file}"
 
+  if [[ "${FLAGS_host_based}" -eq "${FLAGS_TRUE}" ]]; then
+    local nohostbase_option=""
+  else
+    local nohostbase_option="--no-enable-presenter --no-enable-device"
+  fi
+
   local output_toolkit="${output_dir}/install_factory_toolkit.run"
   "${temp_pack_root}/usr/local/factory/py/toolkit/installer.py" \
-    --pack-into "${output_toolkit}"
+    --pack-into "${output_toolkit}" ${nohostbase_option}
 }
 
 main "$@"