| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 scoped_refptr<base::SequencedTaskRunner> background_task_runner = | 43 scoped_refptr<base::SequencedTaskRunner> background_task_runner = |
| 44 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( | 44 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
| 45 content::BrowserThread::GetBlockingPool()->GetSequenceToken()); | 45 content::BrowserThread::GetBlockingPool()->GetSequenceToken()); |
| 46 | 46 |
| 47 base::FilePath store_path = | 47 base::FilePath store_path = |
| 48 profile->GetPath().Append(chrome::kOfflinePageMetadataDirname); | 48 profile->GetPath().Append(chrome::kOfflinePageMetadataDirname); |
| 49 std::unique_ptr<OfflinePageMetadataStore> metadata_store( | 49 std::unique_ptr<OfflinePageMetadataStore> metadata_store( |
| 50 new OfflinePageMetadataStoreSQL(background_task_runner, store_path)); | 50 new OfflinePageMetadataStoreSQL(background_task_runner, store_path)); |
| 51 | 51 |
| 52 base::FilePath archives_dir = | 52 base::FilePath archives_dir = |
| 53 profile->GetPath().Append(chrome::kOfflinePageArchviesDirname); | 53 profile->GetPath().Append(chrome::kOfflinePageArchivesDirname); |
| 54 | 54 |
| 55 return new OfflinePageModelImpl(std::move(metadata_store), archives_dir, | 55 return new OfflinePageModelImpl(std::move(metadata_store), archives_dir, |
| 56 background_task_runner); | 56 background_task_runner); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace offline_pages | 59 } // namespace offline_pages |
| 60 | |
| OLD | NEW |