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

Unified Diff: chrome/browser/favicon/fallback_icon_service_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/favicon/fallback_icon_service_factory.h ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/fallback_icon_service_factory.cc
diff --git a/chrome/browser/favicon/fallback_icon_service_factory.cc b/chrome/browser/favicon/fallback_icon_service_factory.cc
deleted file mode 100644
index a1871dd472c4f7a910144b77a554967a4c88e423..0000000000000000000000000000000000000000
--- a/chrome/browser/favicon/fallback_icon_service_factory.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/favicon/fallback_icon_service_factory.h"
-
-#include "base/memory/singleton.h"
-#include "chrome/browser/favicon/chrome_fallback_icon_client_factory.h"
-#include "chrome/browser/profiles/incognito_helpers.h"
-#include "components/favicon/core/fallback_icon_service.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "content/public/browser/browser_context.h"
-
-// static
-favicon::FallbackIconService* FallbackIconServiceFactory::GetForBrowserContext(
- content::BrowserContext* context) {
- return static_cast<favicon::FallbackIconService*>(
- GetInstance()->GetServiceForBrowserContext(context, true));
-}
-
-// static
-FallbackIconServiceFactory* FallbackIconServiceFactory::GetInstance() {
- return base::Singleton<FallbackIconServiceFactory>::get();
-}
-
-FallbackIconServiceFactory::FallbackIconServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "FallbackIconService",
- BrowserContextDependencyManager::GetInstance()) {
- DependsOn(ChromeFallbackIconClientFactory::GetInstance());
-}
-
-FallbackIconServiceFactory::~FallbackIconServiceFactory() {}
-
-content::BrowserContext* FallbackIconServiceFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- return chrome::GetBrowserContextRedirectedInIncognito(context);
-}
-
-KeyedService* FallbackIconServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- favicon::FallbackIconClient* fallback_icon_client =
- ChromeFallbackIconClientFactory::GetForBrowserContext(context);
- return new favicon::FallbackIconService(fallback_icon_client);
-}
-
-bool FallbackIconServiceFactory::ServiceIsNULLWhileTesting() const {
- return true;
-}
« no previous file with comments | « chrome/browser/favicon/fallback_icon_service_factory.h ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698