[clang-tidy] Readability fixes for src/components/[m-p].*

- Get rid of redundant .c_str() for std::string,
- Get rid of redundant .get() for std::unique_ptr,
- Get rid of redundant member initializations
- Replace NULL -> nullptr.

R=blundell@chromium.org, caitkp@chromium.org, jochen@chromium.org, meacer@chromium.org, sdefresne@chromium.org

Change-Id: Ibcd0f6ad0ab6610a334fb4a5309caa6ad00b5766
Reviewed-on: https://chromium-review.googlesource.com/1046085
Commit-Queue: Alexander Yashkin <a-v-y@yandex-team.ru>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#557807}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3c5a779eb97321edd9a10d499c4db8d5e2e56b88
8 files changed
tree: f4105ad080af7c65d42d807aa1c7afc2ab1e87b1
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README
  5. call_stack_profile_collector.cc
  6. call_stack_profile_collector.h
  7. call_stack_profile_metrics_provider.cc
  8. call_stack_profile_metrics_provider.h
  9. call_stack_profile_metrics_provider_unittest.cc
  10. call_stack_profile_params.h
  11. child_call_stack_profile_collector.cc
  12. child_call_stack_profile_collector.h
  13. child_call_stack_profile_collector_unittest.cc
  14. clean_exit_beacon.cc
  15. clean_exit_beacon.h
  16. client_info.cc
  17. client_info.h
  18. cloned_install_detector.cc
  19. cloned_install_detector.h
  20. cloned_install_detector_unittest.cc
  21. component_metrics_provider.cc
  22. component_metrics_provider.h
  23. component_metrics_provider_unittest.cc
  24. daily_event.cc
  25. daily_event.h
  26. daily_event_unittest.cc
  27. data_use_tracker.cc
  28. data_use_tracker.h
  29. data_use_tracker_unittest.cc
  30. delegating_provider.cc
  31. delegating_provider.h
  32. drive_metrics_provider.cc
  33. drive_metrics_provider.h
  34. drive_metrics_provider_android.cc
  35. drive_metrics_provider_fuchsia.cc
  36. drive_metrics_provider_ios.mm
  37. drive_metrics_provider_linux.cc
  38. drive_metrics_provider_mac.mm
  39. drive_metrics_provider_unittest.cc
  40. drive_metrics_provider_win.cc
  41. enabled_state_provider.cc
  42. enabled_state_provider.h
  43. environment_recorder.cc
  44. environment_recorder.h
  45. environment_recorder_unittest.cc
  46. execution_phase.cc
  47. execution_phase.h
  48. expired_histograms_checker.cc
  49. expired_histograms_checker.h
  50. field_trials_provider.cc
  51. field_trials_provider.h
  52. field_trials_provider_unittest.cc
  53. file_metrics_provider.cc
  54. file_metrics_provider.h
  55. file_metrics_provider_unittest.cc
  56. generate_expired_histograms_array.gni
  57. gpu/
  58. histogram_encoder.cc
  59. histogram_encoder.h
  60. histogram_encoder_unittest.cc
  61. log_decoder.cc
  62. log_decoder.h
  63. log_store.h
  64. machine_id_provider.h
  65. machine_id_provider_stub.cc
  66. machine_id_provider_win.cc
  67. machine_id_provider_win_unittest.cc
  68. metrics_log.cc
  69. metrics_log.h
  70. metrics_log_manager.cc
  71. metrics_log_manager.h
  72. metrics_log_manager_unittest.cc
  73. metrics_log_store.cc
  74. metrics_log_store.h
  75. metrics_log_store_unittest.cc
  76. metrics_log_unittest.cc
  77. metrics_log_uploader.h
  78. metrics_pref_names.cc
  79. metrics_pref_names.h
  80. metrics_provider.cc
  81. metrics_provider.h
  82. metrics_reporting_default_state.cc
  83. metrics_reporting_default_state.h
  84. metrics_reporting_service.cc
  85. metrics_reporting_service.h
  86. metrics_rotation_scheduler.cc
  87. metrics_rotation_scheduler.h
  88. metrics_scheduler.cc
  89. metrics_scheduler.h
  90. metrics_service.cc
  91. metrics_service.h
  92. metrics_service_accessor.cc
  93. metrics_service_accessor.h
  94. metrics_service_client.cc
  95. metrics_service_client.h
  96. metrics_service_unittest.cc
  97. metrics_state_manager.cc
  98. metrics_state_manager.h
  99. metrics_state_manager_unittest.cc
  100. metrics_switches.cc
  101. metrics_switches.h
  102. metrics_upload_scheduler.cc
  103. metrics_upload_scheduler.h
  104. net/
  105. persisted_logs.cc
  106. persisted_logs.h
  107. persisted_logs_metrics.h
  108. persisted_logs_metrics_impl.cc
  109. persisted_logs_metrics_impl.h
  110. persisted_logs_unittest.cc
  111. persistent_system_profile.cc
  112. persistent_system_profile.h
  113. persistent_system_profile_unittest.cc
  114. public/
  115. reporting_service.cc
  116. reporting_service.h
  117. reporting_service_unittest.cc
  118. serialization/
  119. single_sample_metrics.cc
  120. single_sample_metrics.h
  121. single_sample_metrics_factory_impl.cc
  122. single_sample_metrics_factory_impl.h
  123. single_sample_metrics_factory_impl_unittest.cc
  124. stability_metrics_helper.cc
  125. stability_metrics_helper.h
  126. stability_metrics_helper_unittest.cc
  127. stability_metrics_provider.cc
  128. stability_metrics_provider.h
  129. stability_metrics_provider_unittest.cc
  130. system_memory_stats_recorder.h
  131. system_memory_stats_recorder_linux.cc
  132. system_memory_stats_recorder_win.cc
  133. system_session_analyzer_win.cc
  134. system_session_analyzer_win.h
  135. system_session_analyzer_win_unittest.cc
  136. test_enabled_state_provider.cc
  137. test_enabled_state_provider.h
  138. test_metrics_log_uploader.cc
  139. test_metrics_log_uploader.h
  140. test_metrics_provider.cc
  141. test_metrics_provider.h
  142. test_metrics_service_client.cc
  143. test_metrics_service_client.h
  144. ui/
  145. url_constants.cc
  146. url_constants.h
  147. version_utils.cc
  148. version_utils.h