Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1479)

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_model_factory.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/threading/sequenced_worker_pool.h"
13 #include "chrome/browser/profiles/incognito_helpers.h" 12 #include "chrome/browser/profiles/incognito_helpers.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/common/chrome_constants.h" 14 #include "chrome/common/chrome_constants.h"
16 #include "components/keyed_service/content/browser_context_dependency_manager.h" 15 #include "components/keyed_service/content/browser_context_dependency_manager.h"
17 #include "components/offline_pages/core/offline_page_metadata_store_sql.h" 16 #include "components/offline_pages/core/offline_page_metadata_store_sql.h"
18 #include "components/offline_pages/core/offline_page_model_impl.h" 17 #include "components/offline_pages/core/offline_page_model_impl.h"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 19
21 namespace offline_pages { 20 namespace offline_pages {
22 21
(...skipping 28 matching lines...) Expand all
51 new OfflinePageMetadataStoreSQL(background_task_runner, store_path)); 50 new OfflinePageMetadataStoreSQL(background_task_runner, store_path));
52 51
53 base::FilePath archives_dir = 52 base::FilePath archives_dir =
54 profile->GetPath().Append(chrome::kOfflinePageArchivesDirname); 53 profile->GetPath().Append(chrome::kOfflinePageArchivesDirname);
55 54
56 return new OfflinePageModelImpl(std::move(metadata_store), archives_dir, 55 return new OfflinePageModelImpl(std::move(metadata_store), archives_dir,
57 background_task_runner); 56 background_task_runner);
58 } 57 }
59 58
60 } // namespace offline_pages 59 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698