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

Side by Side Diff: chrome/browser/favicon/chrome_fallback_icon_client_factory.cc

Issue 2883053003: Delete unused chrome://fallback-icon/ handling (Closed)
Patch Set: Merge branch 'master' into searchbox3 Created 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/favicon/chrome_fallback_icon_client_factory.h"
6
7 #include "base/memory/singleton.h"
8 #include "chrome/browser/favicon/chrome_fallback_icon_client.h"
9 #include "chrome/browser/profiles/incognito_helpers.h"
10 #include "components/keyed_service/content/browser_context_dependency_manager.h"
11 #include "content/public/browser/browser_context.h"
12
13 ChromeFallbackIconClientFactory::ChromeFallbackIconClientFactory()
14 : BrowserContextKeyedServiceFactory(
15 "ChromeFallbackIconClient",
16 BrowserContextDependencyManager::GetInstance()) {
17 }
18
19 ChromeFallbackIconClientFactory::~ChromeFallbackIconClientFactory() {
20 }
21
22 // static
23 favicon::FallbackIconClient*
24 ChromeFallbackIconClientFactory::GetForBrowserContext(
25 content::BrowserContext* context) {
26 return static_cast<favicon::FallbackIconClient*>(
27 GetInstance()->GetServiceForBrowserContext(context, true));
28 }
29
30 // static
31 ChromeFallbackIconClientFactory*
32 ChromeFallbackIconClientFactory::GetInstance() {
33 return base::Singleton<ChromeFallbackIconClientFactory>::get();
34 }
35
36 KeyedService* ChromeFallbackIconClientFactory::BuildServiceInstanceFor(
37 content::BrowserContext* context) const {
38 return new ChromeFallbackIconClient();
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698