Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1526)

Unified Diff: powerd_main.cc

Issue 6854002: Merge monitor_reconfigure into powerd. (Closed) Base URL: ssh://gitrw.chromium.org:9222/power_manager.git@master
Patch Set: Address first round of reviews, fixing the tests still a TODO. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: powerd_main.cc
diff --git a/powerd_main.cc b/powerd_main.cc
index 971303a46d0d328ddb020d8edd74678e69520bad..a8e4a7ca13d760189ded74a18483a40a3463cfbe 100644
--- a/powerd_main.cc
+++ b/powerd_main.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -18,6 +18,7 @@
#include "cros/chromeos_cros_api.h"
#include "power_manager/ambient_light_sensor.h"
#include "power_manager/backlight.h"
+#include "power_manager/monitor_reconfigure.h"
#include "power_manager/powerd.h"
#ifndef VCSID
@@ -101,8 +102,11 @@ int main(int argc, char* argv[]) {
MetricsLibrary metrics_lib;
metrics_lib.Init();
FilePath run_dir(FLAGS_run_dir);
+ power_manager::MonitorReconfigureMain monitor_reconfigure(&backlight_ctl);
+ if (!monitor_reconfigure.Init())
+ LOG(WARNING) << "Cannot initialize monitor reconfigure";
power_manager::Daemon daemon(&backlight_ctl, &prefs, &metrics_lib,
- &video_detector, run_dir);
+ &video_detector, &monitor_reconfigure, run_dir);
daemon.Init();
daemon.Run();
return 0;

Powered by Google App Engine
This is Rietveld 408576698