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

Unified Diff: chrome/browser/android/offline_pages/offline_page_model_factory.cc

Issue 2011763005: Splits the OfflinePageModel into and interface and and implementation class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix to take ExpirePages defn out of model i/f as StorageManager defines it currently Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/test_offline_page_model_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_model_factory.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_model_factory.cc b/chrome/browser/android/offline_pages/offline_page_model_factory.cc
index 0ffcf9833ccbad06c0091e8a92973ca3ad2310d3..4843a0bfb552c4e2d1a1ebe81dbd24a7dd1a4863 100644
--- a/chrome/browser/android/offline_pages/offline_page_model_factory.cc
+++ b/chrome/browser/android/offline_pages/offline_page_model_factory.cc
@@ -14,7 +14,7 @@
#include "chrome/common/chrome_constants.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/offline_pages/offline_page_metadata_store_sql.h"
-#include "components/offline_pages/offline_page_model.h"
+#include "components/offline_pages/offline_page_model_impl.h"
#include "content/public/browser/browser_thread.h"
namespace offline_pages {
@@ -33,7 +33,7 @@ OfflinePageModelFactory* OfflinePageModelFactory::GetInstance() {
// static
OfflinePageModel* OfflinePageModelFactory::GetForBrowserContext(
content::BrowserContext* context) {
- return static_cast<OfflinePageModel*>(
+ return static_cast<OfflinePageModelImpl*>(
GetInstance()->GetServiceForBrowserContext(context, true));
}
@@ -52,8 +52,8 @@ KeyedService* OfflinePageModelFactory::BuildServiceInstanceFor(
base::FilePath archives_dir =
profile->GetPath().Append(chrome::kOfflinePageArchviesDirname);
- return new OfflinePageModel(std::move(metadata_store), archives_dir,
- background_task_runner);
+ return new OfflinePageModelImpl(std::move(metadata_store), archives_dir,
+ background_task_runner);
}
} // namespace offline_pages
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/test_offline_page_model_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698