Directly pass LibraryProcessType to the native code.

LibraryManager indirectly passes LibraryProcessType value to the native
code via getLibraryProcessType() static method, which is only invoked
in the context of nativeLibraryLoaded() call. I.e. the indirection is
unnecessary and only makes data flow harder to understand.

This CL removes getLibraryProcessType() method and passes process type
value directly to nativeLibraryLoaded().

Bug: 841403
Change-Id: Ib15d765f968029d46d1603cdc7a5d5e7d280bb06
Reviewed-on: https://chromium-review.googlesource.com/1067578
Commit-Queue: Dmitry Skiba <dskiba@chromium.org>
Reviewed-by: Bo <boliu@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Reviewed-by: Maria Khomenko <mariakhomenko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560963}

CrOS-Libchrome-Original-Commit: 0857478da4db286f26a261b41b6297841327ef37
3 files changed
tree: dc0d726eb0224bcb4cef75138a2f20a944ccddb8
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/