OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/component_updater/component_patcher.h" | 5 #include "components/component_updater/component_patcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/bind.h" | 10 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
15 #include "base/json/json_file_value_serializer.h" | 14 #include "base/json/json_file_value_serializer.h" |
16 #include "base/location.h" | 15 #include "base/location.h" |
17 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
18 #include "base/values.h" | 17 #include "base/values.h" |
19 #include "components/component_updater/component_patcher_operation.h" | 18 #include "components/component_updater/component_patcher_operation.h" |
20 #include "components/component_updater/component_updater_service.h" | 19 #include "components/component_updater/component_updater_service.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 116 |
118 void ComponentPatcher::DonePatching(ComponentUnpacker::Error error, | 117 void ComponentPatcher::DonePatching(ComponentUnpacker::Error error, |
119 int extended_error) { | 118 int extended_error) { |
120 current_operation_ = NULL; | 119 current_operation_ = NULL; |
121 task_runner_->PostTask(FROM_HERE, | 120 task_runner_->PostTask(FROM_HERE, |
122 base::Bind(callback_, error, extended_error)); | 121 base::Bind(callback_, error, extended_error)); |
123 callback_.Reset(); | 122 callback_.Reset(); |
124 } | 123 } |
125 | 124 |
126 } // namespace component_updater | 125 } // namespace component_updater |
OLD | NEW |