Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_BACKGROUND_BUDGET_SERVICE_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_PUSH_MESSAGING_BACKGROUND_BUDGET_SERVICE_FACTORY_H_ | |
| 7 | |
| 8 #include "base/memory/singleton.h" | |
| 9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" | |
| 10 | |
| 11 class BackgroundBudgetService; | |
| 12 | |
| 13 class BackgroundBudgetServiceFactory | |
| 14 : public BrowserContextKeyedServiceFactory { | |
| 15 public: | |
| 16 static BackgroundBudgetService* GetForProfile( | |
| 17 content::BrowserContext* profile); | |
|
Michael van Ouwerkerk
2016/04/14 14:36:31
nit: it seems odd to name an argument of type Brow
harkness
2016/04/14 17:44:19
I don't really have strong feelings either way, I
| |
| 18 static BackgroundBudgetServiceFactory* GetInstance(); | |
| 19 | |
| 20 private: | |
| 21 friend struct base::DefaultSingletonTraits<BackgroundBudgetServiceFactory>; | |
| 22 | |
| 23 BackgroundBudgetServiceFactory(); | |
| 24 ~BackgroundBudgetServiceFactory() override{}; | |
|
Michael van Ouwerkerk
2016/04/14 14:36:31
nit: odd spacing. Did you run format?
Peter Beverloo
2016/04/14 16:01:18
also no semi-colon please :-)
harkness
2016/04/14 17:44:19
I did, and I just ran it again with no change. I w
| |
| 25 | |
| 26 KeyedService* BuildServiceInstanceFor( | |
|
Michael van Ouwerkerk
2016/04/14 14:36:31
Add this line above:
// BrowserContextKeyedService
harkness
2016/04/14 17:44:19
Done.
| |
| 27 content::BrowserContext* profile) const override; | |
|
Michael van Ouwerkerk
2016/04/14 14:36:31
nit: s/profile/context/
harkness
2016/04/14 17:44:19
Done.
| |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(BackgroundBudgetServiceFactory); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_PUSH_MESSAGING_BACKGROUND_BUDGET_SERVICE_FACTORY_H_ | |
| OLD | NEW |