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

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

Issue 1420003004: Wipe out offline page data on clearing cookie and site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 5 years, 2 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
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 303cce1fb895e8810001266d6ee153ecb76cf890..813d9505fd2cf2b87a707df60edaac1348760fd9 100644
--- a/chrome/browser/android/offline_pages/offline_page_model_factory.cc
+++ b/chrome/browser/android/offline_pages/offline_page_model_factory.cc
@@ -12,7 +12,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_paths.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/leveldb_proto/proto_database_impl.h"
#include "components/offline_pages/offline_page_metadata_store_impl.h"
#include "components/offline_pages/offline_page_model.h"
#include "components/offline_pages/proto/offline_pages.pb.h"
@@ -48,15 +47,10 @@ KeyedService* OfflinePageModelFactory::BuildServiceInstanceFor(
scoped_refptr<base::SequencedTaskRunner> background_task_runner =
content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
content::BrowserThread::GetBlockingPool()->GetSequenceToken());
-
- scoped_ptr<leveldb_proto::ProtoDatabaseImpl<OfflinePageEntry>> database(
- new leveldb_proto::ProtoDatabaseImpl<OfflinePageEntry>(
- background_task_runner));
-
base::FilePath store_path;
CHECK(PathService::Get(chrome::DIR_OFFLINE_PAGE_METADATA, &store_path));
scoped_ptr<OfflinePageMetadataStoreImpl> metadata_store(
- new OfflinePageMetadataStoreImpl(database.Pass(), store_path));
+ new OfflinePageMetadataStoreImpl(background_task_runner, store_path));
return new OfflinePageModel(metadata_store.Pass(), background_task_runner);
}

Powered by Google App Engine
This is Rietveld 408576698