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

Unified Diff: chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router_factory.h

Issue 1688333002: Deleting chrome.searchEnginesPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manage_search_engines_ui1
Patch Set: Update histograms.xml Created 4 years, 10 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
Index: chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router_factory.h
diff --git a/chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router_factory.h b/chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router_factory.h
deleted file mode 100644
index d083a655669f2a7b44928269617b73ec26ffcd7b..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/search_engines_private/search_engines_private_event_router_factory.h
+++ /dev/null
@@ -1,53 +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.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_SEARCH_ENGINES_PRIVATE_SEARCH_ENGINES_PRIVATE_EVENT_ROUTER_FACTORY_H_
-#define CHROME_BROWSER_EXTENSIONS_API_SEARCH_ENGINES_PRIVATE_SEARCH_ENGINES_PRIVATE_EVENT_ROUTER_FACTORY_H_
-
-#include "base/macros.h"
-#include "base/memory/singleton.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-
-namespace extensions {
-
-class SearchEnginesPrivateEventRouter;
-
-// This is a factory class used by the BrowserContextDependencyManager
-// to instantiate the searchEnginesPrivate event router per profile (since the
-// extension event router is per profile).
-class SearchEnginesPrivateEventRouterFactory
- : public BrowserContextKeyedServiceFactory {
- public:
- // Returns the SearchEnginesPrivateEventRouter for |profile|, creating it if
- // it is not yet created.
- static SearchEnginesPrivateEventRouter* GetForProfile(
- content::BrowserContext* context);
-
- // Returns the SearchEnginesPrivateEventRouterFactory instance.
- static SearchEnginesPrivateEventRouterFactory* GetInstance();
-
- protected:
- // BrowserContextKeyedBaseFactory overrides:
- content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const override;
- bool ServiceIsCreatedWithBrowserContext() const override;
- bool ServiceIsNULLWhileTesting() const override;
-
- private:
- friend struct base::DefaultSingletonTraits<
- SearchEnginesPrivateEventRouterFactory>;
-
- SearchEnginesPrivateEventRouterFactory();
- ~SearchEnginesPrivateEventRouterFactory() override;
-
- // BrowserContextKeyedServiceFactory:
- KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
-
- DISALLOW_COPY_AND_ASSIGN(SearchEnginesPrivateEventRouterFactory);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_SEARCH_ENGINES_PRIVATE_SEARCH_ENGINES_PRIVATE_EVENT_ROUTER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698