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

Unified Diff: chrome/browser/intents/web_intents_registry_factory.cc

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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/intents/web_intents_registry_factory.cc
diff --git a/chrome/browser/intents/web_intents_registry_factory.cc b/chrome/browser/intents/web_intents_registry_factory.cc
deleted file mode 100644
index 376f3d68d0c6edd354f299520fa66b9761d78004..0000000000000000000000000000000000000000
--- a/chrome/browser/intents/web_intents_registry_factory.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 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/intents/web_intents_registry_factory.h"
-
-#include "base/memory/singleton.h"
-#include "chrome/browser/extensions/extension_system_factory.h"
-#include "chrome/browser/intents/web_intents_registry.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_dependency_manager.h"
-#include "chrome/browser/webdata/web_data_service_factory.h"
-
-// static
-WebIntentsRegistry* WebIntentsRegistryFactory::GetForProfile(Profile* profile) {
- return static_cast<WebIntentsRegistry*>(
- GetInstance()->GetServiceForProfile(profile, true));
-}
-
-WebIntentsRegistryFactory::WebIntentsRegistryFactory()
- : ProfileKeyedServiceFactory("WebIntentsRegistry",
- ProfileDependencyManager::GetInstance()) {
- DependsOn(WebDataServiceFactory::GetInstance());
- DependsOn(extensions::ExtensionSystemFactory::GetInstance());
-}
-
-WebIntentsRegistryFactory::~WebIntentsRegistryFactory() {
-}
-
-// static
-WebIntentsRegistryFactory* WebIntentsRegistryFactory::GetInstance() {
- return Singleton<WebIntentsRegistryFactory>::get();
-}
-
-ProfileKeyedService* WebIntentsRegistryFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- WebIntentsRegistry* registry = new WebIntentsRegistry;
- registry->Initialize(WebDataServiceFactory::GetForProfile(
- profile, Profile::EXPLICIT_ACCESS),
- profile->GetExtensionService());
- return registry;
-}
-
-bool WebIntentsRegistryFactory::ServiceRedirectedInIncognito() const {
- return false;
-}
« no previous file with comments | « chrome/browser/intents/web_intents_registry_factory.h ('k') | chrome/browser/intents/web_intents_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698