| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/webdata/common/web_database_service.h" | 5 #include "components/webdata/common/web_database_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/location.h" | 10 #include "base/location.h" |
| 9 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 10 #include "components/webdata/common/web_data_request_manager.h" | 12 #include "components/webdata/common/web_data_request_manager.h" |
| 11 #include "components/webdata/common/web_data_results.h" | 13 #include "components/webdata/common/web_data_results.h" |
| 12 #include "components/webdata/common/web_data_service_consumer.h" | 14 #include "components/webdata/common/web_data_service_consumer.h" |
| 13 #include "components/webdata/common/web_database_backend.h" | 15 #include "components/webdata/common/web_database_backend.h" |
| 14 | 16 |
| 15 using base::Bind; | 17 using base::Bind; |
| 16 using base::FilePath; | 18 using base::FilePath; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } else { | 145 } else { |
| 144 // Notify that the database load failed. | 146 // Notify that the database load failed. |
| 145 for (size_t i = 0; i < error_callbacks_.size(); i++) { | 147 for (size_t i = 0; i < error_callbacks_.size(); i++) { |
| 146 if (!error_callbacks_[i].is_null()) | 148 if (!error_callbacks_[i].is_null()) |
| 147 error_callbacks_[i].Run(status); | 149 error_callbacks_[i].Run(status); |
| 148 } | 150 } |
| 149 | 151 |
| 150 error_callbacks_.clear(); | 152 error_callbacks_.clear(); |
| 151 } | 153 } |
| 152 } | 154 } |
| OLD | NEW |