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

Side by Side Diff: chrome/browser/history/top_sites_factory.h

Issue 1129903008: NTP Zombie Code Slayer Part IV: Most Visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pref registration Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 29 matching lines...) Expand all
40 40
41 private: 41 private:
42 friend struct DefaultSingletonTraits<TopSitesFactory>; 42 friend struct DefaultSingletonTraits<TopSitesFactory>;
43 43
44 TopSitesFactory(); 44 TopSitesFactory();
45 ~TopSitesFactory() override; 45 ~TopSitesFactory() override;
46 46
47 // Overridden from BrowserContextKeyedServiceFactory. 47 // Overridden from BrowserContextKeyedServiceFactory.
48 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( 48 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
49 content::BrowserContext* context) const override; 49 content::BrowserContext* context) const override;
50 void RegisterProfilePrefs(
gab 2015/05/20 18:58:49 Where is this called from? I don't see any new cal
Dan Beam 2015/05/20 19:16:00 note the "override" https://code.google.com/p/chr
51 user_prefs::PrefRegistrySyncable* registry) override;
50 bool ServiceIsNULLWhileTesting() const override; 52 bool ServiceIsNULLWhileTesting() const override;
51 53
52 DISALLOW_COPY_AND_ASSIGN(TopSitesFactory); 54 DISALLOW_COPY_AND_ASSIGN(TopSitesFactory);
53 }; 55 };
54 56
55 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ 57 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698