| 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/browser/signin_confirmation_helper.h" | 5 #include "components/browser_sync/browser/signin_confirmation_helper.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "components/history/core/browser/history_backend.h" | 9 #include "components/history/core/browser/history_backend.h" |
| 10 #include "components/history/core/browser/history_db_task.h" | 10 #include "components/history/core/browser/history_db_task.h" |
| 11 #include "components/history/core/browser/history_service.h" | 11 #include "components/history/core/browser/history_service.h" |
| 12 #include "components/history/core/browser/history_types.h" | 12 #include "components/history/core/browser/history_types.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Determines whether there are any typed URLs in a history backend. | 16 // Determines whether there are any typed URLs in a history backend. |
| 17 class HasTypedURLsTask : public history::HistoryDBTask { | 17 class HasTypedURLsTask : public history::HistoryDBTask { |
| 18 public: | 18 public: |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 if (--pending_requests_ == 0 || result) { | 109 if (--pending_requests_ == 0 || result) { |
| 110 return_result_.Run(result); | 110 return_result_.Run(result); |
| 111 | 111 |
| 112 // This leaks at shutdown if the HistoryService is destroyed, but | 112 // This leaks at shutdown if the HistoryService is destroyed, but |
| 113 // the process is going to die anyway. | 113 // the process is going to die anyway. |
| 114 delete this; | 114 delete this; |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace sync_driver | 118 } // namespace sync_driver |
| OLD | NEW |