Fix crash caused by Android Studio Profiler

When attaching the profiler from Android Studio 3, Chrome crashes due 
to an assert in BaseChromiumApplication.
This CL fixes the crash and removes some duplicated code.

NOTRY=true

Change-Id: I18aa96f6e23a91dc5f3bfb3d6f07ea56f74d268a
Reviewed-on: https://chromium-review.googlesource.com/738775
Commit-Queue: Christian Dullweber <dullweber@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#514113}

CrOS-Libchrome-Original-Commit: 123e9f751892255cb6cf59e524eb71d10b7f019e
1 file changed
tree: 1599d75222d8fdacc007cc289274065f272f9d33
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/