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

Unified Diff: main.cc

Issue 2868061: Measure and send update time to UMA. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 5 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 | « SConstruct ('k') | update_attempter.h » ('j') | update_attempter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: main.cc
diff --git a/main.cc b/main.cc
index 52ace9a42ae34c917caee13e0ef2b351d859cda8..268bcc07af6ee0e726f04c3525e09ff1fec26c27 100644
--- a/main.cc
+++ b/main.cc
@@ -5,10 +5,13 @@
#include <string>
#include <tr1/memory>
#include <vector>
+
#include <gflags/gflags.h>
#include <glib.h>
+
#include "base/command_line.h"
#include "chromeos/obsolete_logging.h"
+#include "metrics/metrics_library.h"
#include "update_engine/dbus_constants.h"
#include "update_engine/dbus_service.h"
#include "update_engine/update_attempter.h"
@@ -102,8 +105,11 @@ int main(int argc, char** argv) {
// Create the single GMainLoop
GMainLoop* loop = g_main_loop_new(g_main_context_default(), FALSE);
+ MetricsLibrary metrics_lib;
+ metrics_lib.Init();
+
// Create the update attempter:
- chromeos_update_engine::UpdateAttempter update_attempter;
+ chromeos_update_engine::UpdateAttempter update_attempter(&metrics_lib);
// Create the dbus service object:
dbus_g_object_type_install_info(UPDATE_ENGINE_TYPE_SERVICE,
« no previous file with comments | « SConstruct ('k') | update_attempter.h » ('j') | update_attempter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698