| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/memory/weak_ptr.h" |
| 9 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 10 #include "base/scoped_temp_dir.h" | |
| 11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 12 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 13 #include "base/values.h" | 14 #include "base/values.h" |
| 14 #include "base/memory/weak_ptr.h" | |
| 15 #include "chrome/browser/history/history_backend.h" | 15 #include "chrome/browser/history/history_backend.h" |
| 16 #include "chrome/browser/history/history_database.h" | 16 #include "chrome/browser/history/history_database.h" |
| 17 #include "chrome/browser/history/history_marshaling.h" | 17 #include "chrome/browser/history/history_marshaling.h" |
| 18 #include "chrome/browser/history/history_notifications.h" | 18 #include "chrome/browser/history/history_notifications.h" |
| 19 #include "chrome/browser/history/history_service_factory.h" | 19 #include "chrome/browser/history/history_service_factory.h" |
| 20 #include "chrome/browser/history/history_unittest_base.h" | 20 #include "chrome/browser/history/history_unittest_base.h" |
| 21 #include "chrome/browser/history/top_sites.h" | 21 #include "chrome/browser/history/top_sites.h" |
| 22 #include "chrome/browser/history/top_sites_backend.h" | 22 #include "chrome/browser/history/top_sites_backend.h" |
| 23 #include "chrome/browser/history/top_sites_cache.h" | 23 #include "chrome/browser/history/top_sites_cache.h" |
| 24 #include "chrome/browser/history/top_sites_database.h" | 24 #include "chrome/browser/history/top_sites_database.h" |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 chrome::NOTIFICATION_TOP_SITES_LOADED, | 1249 chrome::NOTIFICATION_TOP_SITES_LOADED, |
| 1250 content::Source<Profile>(profile())); | 1250 content::Source<Profile>(profile())); |
| 1251 profile()->CreateTopSites(); | 1251 profile()->CreateTopSites(); |
| 1252 HistoryServiceFactory::GetForProfile( | 1252 HistoryServiceFactory::GetForProfile( |
| 1253 profile(), Profile::EXPLICIT_ACCESS)->UnloadBackend(); | 1253 profile(), Profile::EXPLICIT_ACCESS)->UnloadBackend(); |
| 1254 profile()->BlockUntilHistoryProcessesPendingRequests(); | 1254 profile()->BlockUntilHistoryProcessesPendingRequests(); |
| 1255 observer.Wait(); | 1255 observer.Wait(); |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 } // namespace history | 1258 } // namespace history |
| OLD | NEW |