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

Side by Side Diff: subprocess.cc

Issue 3170010: [update_engine] Update to use not-hideously-old logging API from chrome (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 years, 4 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 | « subprocess.h ('k') | tarjan.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 Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium 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 #include "update_engine/subprocess.h" 5 #include "update_engine/subprocess.h"
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "chromeos/obsolete_logging.h" 10 #include "base/logging.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 13
14 using std::string; 14 using std::string;
15 using std::vector; 15 using std::vector;
16 16
17 namespace chromeos_update_engine { 17 namespace chromeos_update_engine {
18 18
19 void Subprocess::GChildExitedCallback(GPid pid, gint status, gpointer data) { 19 void Subprocess::GChildExitedCallback(GPid pid, gint status, gpointer data) {
20 COMPILE_ASSERT(sizeof(guint) == sizeof(uint32_t), 20 COMPILE_ASSERT(sizeof(guint) == sizeof(uint32_t),
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 if (child_stdout) 142 if (child_stdout)
143 LOG(INFO) << "Postinst stdout:" << child_stdout; 143 LOG(INFO) << "Postinst stdout:" << child_stdout;
144 if (child_stderr) 144 if (child_stderr)
145 LOG(INFO) << "Postinst stderr:" << child_stderr; 145 LOG(INFO) << "Postinst stderr:" << child_stderr;
146 return success; 146 return success;
147 } 147 }
148 148
149 Subprocess* Subprocess::subprocess_singleton_ = NULL; 149 Subprocess* Subprocess::subprocess_singleton_ = NULL;
150 150
151 } // namespace chromeos_update_engine 151 } // namespace chromeos_update_engine
OLDNEW
« no previous file with comments | « subprocess.h ('k') | tarjan.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698