Roll src/third_party/cros_system_api/ a2b1d7545..3a78fde2f (5 commits)

https://chromium.googlesource.com/chromiumos/platform2/system_api.git/+log/a2b1d754558c..3a78fde2f314

$ git log a2b1d7545..3a78fde2f --date=short --no-merges --format='%ad %ae %s'
2019-04-17 jschettler arc: Add ARC Print Spooler experiment
2019-04-11 lamzin system_api, power: add new power policies
2019-04-17 benchan system_api: remove obsolete debugd constants
2019-04-17 emaxx system_api: Go proto bindings for cryptohome
2019-04-03 cmtm debugd: include journald log in feedback report

Created with:
  roll-dep src/third_party/cros_system_api

Change-Id: I054a2fa4ce421a50ade7ac0e3f9a7de8731f6803
Bug: none
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574811
Reviewed-by: Dan Erat <derat@chromium.org>
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Cr-Commit-Position: refs/heads/master@{#653176}
diff --git a/DEPS b/DEPS
index d6de4b5..5f4a300 100644
--- a/DEPS
+++ b/DEPS
@@ -820,7 +820,7 @@
 
   # For Linux and Chromium OS.
   'src/third_party/cros_system_api': {
-      'url': Var('chromium_git') + '/chromiumos/platform2/system_api.git' + '@' + 'a2b1d754558c4e0b6dab30866bdb60e80b1c8795',
+      'url': Var('chromium_git') + '/chromiumos/platform2/system_api.git' + '@' + '3a78fde2f31448ec30a807f8cba7c6cf7059b9d1',
       'condition': 'checkout_linux',
   },
 
diff --git a/chromeos/dbus/power/power_policy_controller.cc b/chromeos/dbus/power/power_policy_controller.cc
index 7031385..24c4e60d 100644
--- a/chromeos/dbus/power/power_policy_controller.cc
+++ b/chromeos/dbus/power/power_policy_controller.cc
@@ -107,32 +107,30 @@
     delays->set_idle_warning_ms(warn_ms);
 }
 
-power_manager::PowerManagementPolicy::PeakShiftDayConfig::WeekDay
-GetProtoWeekDay(PowerPolicyController::WeekDay week_day) {
+power_manager::PowerManagementPolicy::WeekDay GetProtoWeekDay(
+    PowerPolicyController::WeekDay week_day) {
   switch (week_day) {
     case PowerPolicyController::WeekDay::WEEK_DAY_MONDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::MONDAY;
+      return power_manager::PowerManagementPolicy::MONDAY;
     case PowerPolicyController::WeekDay::WEEK_DAY_TUESDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::TUESDAY;
+      return power_manager::PowerManagementPolicy::TUESDAY;
     case PowerPolicyController::WeekDay::WEEK_DAY_WEDNESDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::
-          WEDNESDAY;
+      return power_manager::PowerManagementPolicy::WEDNESDAY;
     case PowerPolicyController::WeekDay::WEEK_DAY_THURSDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::THURSDAY;
+      return power_manager::PowerManagementPolicy::THURSDAY;
     case PowerPolicyController::WeekDay::WEEK_DAY_FRIDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::FRIDAY;
+      return power_manager::PowerManagementPolicy::FRIDAY;
     case PowerPolicyController::WeekDay::WEEK_DAY_SATURDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::SATURDAY;
+      return power_manager::PowerManagementPolicy::SATURDAY;
     case PowerPolicyController::WeekDay::WEEK_DAY_SUNDAY:
-      return power_manager::PowerManagementPolicy::PeakShiftDayConfig::SUNDAY;
+      return power_manager::PowerManagementPolicy::SUNDAY;
   }
 }
 
-std::unique_ptr<
-    power_manager::PowerManagementPolicy::PeakShiftDayConfig::DayTime>
-GetProtoDayTime(const PowerPolicyController::DayTime& day_time) {
-  auto proto = std::make_unique<
-      power_manager::PowerManagementPolicy::PeakShiftDayConfig::DayTime>();
+std::unique_ptr<power_manager::PowerManagementPolicy::DayTime> GetProtoDayTime(
+    const PowerPolicyController::DayTime& day_time) {
+  auto proto =
+      std::make_unique<power_manager::PowerManagementPolicy::DayTime>();
   proto->set_hour(day_time.hour);
   proto->set_minute(day_time.minute);
   return proto;
diff --git a/chromeos/dbus/power/power_policy_controller_unittest.cc b/chromeos/dbus/power/power_policy_controller_unittest.cc
index 3bc5542..ee4bb6a 100644
--- a/chromeos/dbus/power/power_policy_controller_unittest.cc
+++ b/chromeos/dbus/power/power_policy_controller_unittest.cc
@@ -195,8 +195,7 @@
 
   expected_policy.set_peak_shift_battery_percent_threshold(20);
   auto* proto_config = expected_policy.add_peak_shift_day_configs();
-  proto_config->set_day(
-      power_manager::PowerManagementPolicy::PeakShiftDayConfig::TUESDAY);
+  proto_config->set_day(power_manager::PowerManagementPolicy::TUESDAY);
   proto_config->mutable_start_time()->set_hour(10);
   proto_config->mutable_start_time()->set_minute(0);
   proto_config->mutable_end_time()->set_hour(20);