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 "chrome/browser/history/chrome_history_backend_client.h" | 5 #include "chrome/browser/history/chrome_history_backend_client.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "chrome/common/channel_info.h" | 8 #include "chrome/common/channel_info.h" |
8 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
9 #include "components/bookmarks/browser/bookmark_model.h" | 10 #include "components/bookmarks/browser/bookmark_model.h" |
10 #include "components/version_info/version_info.h" | 11 #include "components/version_info/version_info.h" |
11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
12 | 13 |
13 #if BUILDFLAG(ANDROID_JAVA_UI) | 14 #if BUILDFLAG(ANDROID_JAVA_UI) |
14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "chrome/browser/history/android/android_provider_backend.h" | 17 #include "chrome/browser/history/android/android_provider_backend.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 thumbnail_database, this, history_backend)); | 87 thumbnail_database, this, history_backend)); |
87 } | 88 } |
88 } | 89 } |
89 | 90 |
90 void ChromeHistoryBackendClient::OnHistoryBackendDestroyed( | 91 void ChromeHistoryBackendClient::OnHistoryBackendDestroyed( |
91 history::HistoryBackend* history_backend, | 92 history::HistoryBackend* history_backend, |
92 const base::FilePath& history_dir) { | 93 const base::FilePath& history_dir) { |
93 sql::Connection::Delete(history_dir.Append(kAndroidCacheFilename)); | 94 sql::Connection::Delete(history_dir.Append(kAndroidCacheFilename)); |
94 } | 95 } |
95 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 96 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
OLD | NEW |