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

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: . 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
« no previous file with comments | « powerd.cc ('k') | powerd_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: powerd_main.cc
diff --git a/powerd_main.cc b/powerd_main.cc
index 971303a46d0d328ddb020d8edd74678e69520bad..c36d20eb4dc8e369c776fb5f32ca0f8d23749f7d 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::MonitorReconfigure 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;
« no previous file with comments | « powerd.cc ('k') | powerd_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698