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

Side by Side Diff: chrome/browser/budget_service/budget_manager_factory.cc

Issue 2272563005: Start plumbing connections from the BudgetManager to the BudgetDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the task runner Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/budget_service/budget_manager_factory.h" 5 #include "chrome/browser/budget_service/budget_manager_factory.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/time/default_clock.h" 8 #include "base/time/default_clock.h"
9 #include "chrome/browser/budget_service/budget_manager.h" 9 #include "chrome/browser/budget_service/budget_manager.h"
10 #include "chrome/browser/engagement/site_engagement_service_factory.h" 10 #include "chrome/browser/engagement/site_engagement_service_factory.h"
(...skipping 19 matching lines...) Expand all
30 30
31 BudgetManagerFactory::BudgetManagerFactory() 31 BudgetManagerFactory::BudgetManagerFactory()
32 : BrowserContextKeyedServiceFactory( 32 : BrowserContextKeyedServiceFactory(
33 "BudgetManager", 33 "BudgetManager",
34 BrowserContextDependencyManager::GetInstance()) { 34 BrowserContextDependencyManager::GetInstance()) {
35 DependsOn(SiteEngagementServiceFactory::GetInstance()); 35 DependsOn(SiteEngagementServiceFactory::GetInstance());
36 } 36 }
37 37
38 KeyedService* BudgetManagerFactory::BuildServiceInstanceFor( 38 KeyedService* BudgetManagerFactory::BuildServiceInstanceFor(
39 content::BrowserContext* profile) const { 39 content::BrowserContext* profile) const {
40 DCHECK(profile);
40 return new BudgetManager(static_cast<Profile*>(profile)); 41 return new BudgetManager(static_cast<Profile*>(profile));
41 } 42 }
OLDNEW
« no previous file with comments | « chrome/browser/budget_service/budget_manager.cc ('k') | chrome/browser/budget_service/budget_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698