| 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/android/offline_pages/offline_page_model_factory.h" | 5 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 base::FilePath store_path = | 48 base::FilePath store_path = |
| 49 profile->GetPath().Append(chrome::kOfflinePageMetadataDirname); | 49 profile->GetPath().Append(chrome::kOfflinePageMetadataDirname); |
| 50 std::unique_ptr<OfflinePageMetadataStore> metadata_store( | 50 std::unique_ptr<OfflinePageMetadataStore> metadata_store( |
| 51 new OfflinePageMetadataStoreSQL(background_task_runner, store_path)); | 51 new OfflinePageMetadataStoreSQL(background_task_runner, store_path)); |
| 52 | 52 |
| 53 base::FilePath archives_dir = | 53 base::FilePath archives_dir = |
| 54 profile->GetPath().Append(chrome::kOfflinePageArchviesDirname); | 54 profile->GetPath().Append(chrome::kOfflinePageArchviesDirname); |
| 55 | 55 |
| 56 return new OfflinePageModel(std::move(metadata_store), archives_dir, | 56 return new OfflinePageModel(std::move(metadata_store), archives_dir, |
| 57 background_task_runner); | 57 background_task_runner, profile->GetPrefs()); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace offline_pages | 60 } // namespace offline_pages |
| 61 | 61 |
| OLD | NEW |