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

Unified Diff: delta_diff_generator.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cycle_breaker_unittest.cc ('k') | delta_diff_generator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_diff_generator.cc
diff --git a/delta_diff_generator.cc b/delta_diff_generator.cc
index 657bdf50410f2c348cb6034ae9fa02469f0bb087..48730a83229e0436860805f093314ad4e7330534 100644
--- a/delta_diff_generator.cc
+++ b/delta_diff_generator.cc
@@ -13,7 +13,7 @@
#include <utility>
#include <vector>
#include <bzlib.h>
-#include "chromeos/obsolete_logging.h"
+#include "base/logging.h"
#include "update_engine/bzip.h"
#include "update_engine/cycle_breaker.h"
#include "update_engine/extent_mapper.h"
@@ -652,7 +652,7 @@ bool DeltaDiffGenerator::CutEdges(Graph* graph,
// delete the old edge
CHECK_EQ(1, (*graph)[it->first].out_edges.erase(it->second));
-
+
// Add an edge from dst to copy operation
(*graph)[it->second].out_edges.insert(make_pair(graph->size() - 1,
EdgeProperties()));
@@ -692,7 +692,7 @@ void DeltaDiffGenerator::CreateEdges(Graph* graph,
(*graph)[blocks[i].writer].out_edges.insert(
make_pair(blocks[i].reader, EdgeProperties()));
edge_it = (*graph)[blocks[i].writer].out_edges.find(blocks[i].reader);
- CHECK_NE(edge_it, (*graph)[blocks[i].writer].out_edges.end());
+ CHECK(edge_it != (*graph)[blocks[i].writer].out_edges.end());
}
graph_utils::AppendBlockToExtents(&edge_it->second.extents, i);
}
@@ -705,7 +705,7 @@ bool DeltaDiffGenerator::ReorderDataBlobs(
int in_fd = open(data_blobs_path.c_str(), O_RDONLY, 0);
TEST_AND_RETURN_FALSE_ERRNO(in_fd >= 0);
ScopedFdCloser in_fd_closer(&in_fd);
-
+
DirectFileWriter writer;
TEST_AND_RETURN_FALSE(
writer.Open(new_data_blobs_path.c_str(),
@@ -713,7 +713,7 @@ bool DeltaDiffGenerator::ReorderDataBlobs(
0644) == 0);
ScopedFileWriterCloser writer_closer(&writer);
uint64_t out_file_size = 0;
-
+
for (int i = 0; i < (manifest->install_operations_size() +
manifest->kernel_install_operations_size()); i++) {
DeltaArchiveManifest_InstallOperation* op = NULL;
« no previous file with comments | « cycle_breaker_unittest.cc ('k') | delta_diff_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698