Reland: Move generic_sensor into Device Service.

Reland the CL: https://codereview.chromium.org/2865263002/
Move //device/generic_sensor to be part of the internal implementation
of the Device Service.

This is the last step of "Content Modularization of generic sensor". 
Remove the *.export.h, change the gn target 'component' to 'source_set', which
makes the generic sensor to be the internal implementation of //services.

Previously it broke the generic_sensor_browsertest, the root cause is: There
is a global var: |g_provider_for_testing| in "platform_sensor_provider.cc".
If we change the "component" to "source_set", all dependents don't share the
same |g_provider_for_testing| anymore.

The CL "rewrite the generic_sensor_browsertest" was landed, the new
generic_sensor_browsertest doesn't use the |g_provider_for_testing| anymore.

Compared to the reverted CL, This CL doesn't make other changes except:
1)resolving some conflicts.
2)Add visibility control in BUILD.gn of //services/device/generic_sensor.

BUG=689384

Change-Id: I0c989eb98e2eb8f8bf06b13e19055903b2853fd0
Reviewed-on: https://chromium-review.googlesource.com/549481
Commit-Queue: Ke He <ke.he@intel.com>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#484462}

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