| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 #include <gflags/gflags.h> | 6 #include <gflags/gflags.h> |
| 7 | 7 |
| 8 #include "metrics_daemon.h" | 8 #include "metrics_daemon.h" |
| 9 | 9 |
| 10 DEFINE_bool(daemon, true, "run as daemon (use -nodaemon for debugging)"); | 10 DEFINE_bool(daemon, true, "run as daemon (use -nodaemon for debugging)"); |
| 11 | 11 |
| 12 int main(int argc, char** argv) { | 12 int main(int argc, char** argv) { |
| 13 MetricsDaemon::MetricsDaemon d; | 13 MetricsDaemon::MetricsDaemon d; |
| 14 google::ParseCommandLineFlags(&argc, &argv, true); | 14 google::ParseCommandLineFlags(&argc, &argv, true); |
| 15 d.Run(FLAGS_daemon, false); | 15 d.Run(FLAGS_daemon); |
| 16 } | 16 } |
| OLD | NEW |