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

Side by Side Diff: src/platform/metrics/metrics_daemon_main.cc

Issue 2079007: Add metrics library tests. Some metrics daemon API cleanup. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: A bit more cleanup. Created 10 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/platform/metrics/metrics_daemon.cc ('k') | src/platform/metrics/metrics_daemon_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
14 google::ParseCommandLineFlags(&argc, &argv, true); 13 google::ParseCommandLineFlags(&argc, &argv, true);
15 d.Run(FLAGS_daemon); 14 MetricsLibrary metrics_lib;
15 metrics_lib.Init();
16 MetricsDaemon daemon;
17 daemon.Init(false, &metrics_lib);
18 daemon.Run(FLAGS_daemon);
16 } 19 }
OLDNEW
« no previous file with comments | « src/platform/metrics/metrics_daemon.cc ('k') | src/platform/metrics/metrics_daemon_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698