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

Unified Diff: main.cc

Issue 2856070: Don't send machine and user ID to Omaha anymore. Send a/r pings instead. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Address review comments. 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') | omaha_request_action.h » ('j') | omaha_request_action.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: main.cc
diff --git a/main.cc b/main.cc
index 204c5254b6065ed58294aaf6c60fd187772d0c6b..bdd216c9790009d87aac21ed688f39b81ad46a3b 100644
--- a/main.cc
+++ b/main.cc
@@ -14,6 +14,7 @@
#include "metrics/metrics_library.h"
#include "update_engine/dbus_constants.h"
#include "update_engine/dbus_service.h"
+#include "update_engine/prefs.h"
#include "update_engine/update_attempter.h"
extern "C" {
@@ -105,11 +106,16 @@ int main(int argc, char** argv) {
// Create the single GMainLoop
GMainLoop* loop = g_main_loop_new(g_main_context_default(), FALSE);
+ chromeos_update_engine::Prefs prefs;
+ LOG_IF(ERROR, !prefs.Init(FilePath("/var/lib/update_engine/prefs")))
+ << "Failed to initialize preferences.";
+
MetricsLibrary metrics_lib;
metrics_lib.Init();
// Create the update attempter:
- chromeos_update_engine::UpdateAttempter update_attempter(&metrics_lib);
+ chromeos_update_engine::UpdateAttempter update_attempter(&prefs,
+ &metrics_lib);
// Create the dbus service object:
dbus_g_object_type_install_info(UPDATE_ENGINE_TYPE_SERVICE,
« no previous file with comments | « SConstruct ('k') | omaha_request_action.h » ('j') | omaha_request_action.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698