OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS 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 <algorithm> | 5 #include <algorithm> |
6 #include <vector> | 6 #include <vector> |
7 #include "chromeos/obsolete_logging.h" | 7 #include "base/logging.h" |
8 #include "update_engine/tarjan.h" | 8 #include "update_engine/tarjan.h" |
9 #include "update_engine/utils.h" | 9 #include "update_engine/utils.h" |
10 | 10 |
11 using std::min; | 11 using std::min; |
12 using std::vector; | 12 using std::vector; |
13 | 13 |
14 namespace chromeos_update_engine { | 14 namespace chromeos_update_engine { |
15 | 15 |
16 namespace { | 16 namespace { |
17 const vector<Vertex>::size_type kInvalidIndex = -1; | 17 const vector<Vertex>::size_type kInvalidIndex = -1; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 if (utils::VectorContainsValue(component, required_vertex_)) { | 62 if (utils::VectorContainsValue(component, required_vertex_)) { |
63 components_.resize(components_.size() + 1); | 63 components_.resize(components_.size() + 1); |
64 component.swap(components_.back()); | 64 component.swap(components_.back()); |
65 } | 65 } |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 } // namespace chromeos_update_engine | 69 } // namespace chromeos_update_engine |
70 | 70 |
OLD | NEW |