OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser_sync/signin_confirmation_helper.h" | 5 #include "components/browser_sync/signin_confirmation_helper.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "base/single_thread_task_runner.h" |
9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "components/history/core/browser/history_backend.h" | 12 #include "components/history/core/browser/history_backend.h" |
12 #include "components/history/core/browser/history_db_task.h" | 13 #include "components/history/core/browser/history_db_task.h" |
13 #include "components/history/core/browser/history_service.h" | 14 #include "components/history/core/browser/history_service.h" |
14 #include "components/history/core/browser/history_types.h" | 15 #include "components/history/core/browser/history_types.h" |
15 | 16 |
16 namespace browser_sync { | 17 namespace browser_sync { |
17 | 18 |
18 namespace { | 19 namespace { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 if (--pending_requests_ == 0 || result) { | 112 if (--pending_requests_ == 0 || result) { |
112 return_result_.Run(result); | 113 return_result_.Run(result); |
113 | 114 |
114 // This leaks at shutdown if the HistoryService is destroyed, but | 115 // This leaks at shutdown if the HistoryService is destroyed, but |
115 // the process is going to die anyway. | 116 // the process is going to die anyway. |
116 delete this; | 117 delete this; |
117 } | 118 } |
118 } | 119 } |
119 | 120 |
120 } // namespace browser_sync | 121 } // namespace browser_sync |
OLD | NEW |