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

Unified Diff: src/platform/update_engine/main.cc

Issue 466036: AU: Beginnings of delta support (Closed)
Patch Set: Created 11 years 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 | « src/platform/update_engine/libcurl_http_fetcher.cc ('k') | src/platform/update_engine/mock_file_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/main.cc
diff --git a/src/platform/update_engine/main.cc b/src/platform/update_engine/main.cc
index 412020b9234f3504b850c5a62e1ed9034b4d009a..bbb6401e1db67b809167f60bdb90637a2725a019 100644
--- a/src/platform/update_engine/main.cc
+++ b/src/platform/update_engine/main.cc
@@ -2,34 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stdlib.h>
-#include <stdio.h>
-#include <iostream>
#include <glib.h>
-#include <base/logging.h>
-#include <libxml/parser.h>
-#include <libxml/xpath.h>
-#include <libxml/xpathInternals.h>
-
-// This code runs inside the main loop
-gboolean EntryPoint(gpointer data) {
- GMainLoop *loop = reinterpret_cast<GMainLoop*>(data);
- LOG(INFO) << "Chrome OS Update Engine beginning";
- g_main_loop_quit(loop);
- return FALSE;
-}
+#include "update_engine/subprocess.h"
int main(int argc, char** argv) {
- xmlDocPtr doc = xmlNewDoc((const xmlChar*)"1.0");
- CHECK(doc);
- CHECK_EQ(argc, 2);
- printf("enc: [%s]\n", xmlEncodeEntitiesReentrant(doc, (const xmlChar*)argv[1]));
- return 0;
-
-
- GMainLoop *loop = g_main_loop_new(g_main_context_default(), FALSE);
- g_timeout_add(0, &EntryPoint, loop);
- g_main_loop_run(loop);
+ g_thread_init(NULL);
+ chromeos_update_engine::Subprocess::Init();
return 0;
}
« no previous file with comments | « src/platform/update_engine/libcurl_http_fetcher.cc ('k') | src/platform/update_engine/mock_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698