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

Unified Diff: chrome/browser/previews/previews_service_factory.cc

Issue 2387823002: Adding ClearBlackList to the PreviewsBlackList and plumbing to UI (Closed)
Patch Set: tbansal comments Created 4 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/previews/previews_service_factory.cc
diff --git a/chrome/browser/previews/previews_service_factory.cc b/chrome/browser/previews/previews_service_factory.cc
index e359487e28689e7a82b9c87dd6f1c8bf1d94e2a1..791aa5a190ffdd680c9b2c45728eba17419de207 100644
--- a/chrome/browser/previews/previews_service_factory.cc
+++ b/chrome/browser/previews/previews_service_factory.cc
@@ -11,21 +11,20 @@
namespace {
base::LazyInstance<PreviewsServiceFactory> g_previews_factory =
LAZY_INSTANCE_INITIALIZER;
} // namespace
// static
PreviewsService* PreviewsServiceFactory::GetForProfile(Profile* profile) {
- DCHECK_NE(profile->GetProfileType(), Profile::INCOGNITO_PROFILE);
return static_cast<PreviewsService*>(
GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
PreviewsServiceFactory* PreviewsServiceFactory::GetInstance() {
return g_previews_factory.Pointer();
}
PreviewsServiceFactory::PreviewsServiceFactory()
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | components/previews/core/previews_black_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698