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

Unified Diff: chrome/browser/intents/cws_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/cws_intents_registry_factory.cc
diff --git a/chrome/browser/intents/cws_intents_registry_factory.cc b/chrome/browser/intents/cws_intents_registry_factory.cc
deleted file mode 100644
index 1e9a9074eb0db3a12350091a1ac4b45fd79b880b..0000000000000000000000000000000000000000
--- a/chrome/browser/intents/cws_intents_registry_factory.cc
+++ /dev/null
@@ -1,40 +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/cws_intents_registry.h"
-#include "chrome/browser/intents/cws_intents_registry_factory.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_dependency_manager.h"
-
-// static
-CWSIntentsRegistry* CWSIntentsRegistryFactory::GetForProfile(Profile* profile) {
- return static_cast<CWSIntentsRegistry*>(
- GetInstance()->GetServiceForProfile(profile, true));
-}
-
-CWSIntentsRegistryFactory::CWSIntentsRegistryFactory()
- : ProfileKeyedServiceFactory("CWSIntentsRegistry",
- ProfileDependencyManager::GetInstance()) {
-}
-
-CWSIntentsRegistryFactory::~CWSIntentsRegistryFactory() {
-}
-
-// static
-CWSIntentsRegistryFactory* CWSIntentsRegistryFactory::GetInstance() {
- return Singleton<CWSIntentsRegistryFactory>::get();
-}
-
-ProfileKeyedService* CWSIntentsRegistryFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- CWSIntentsRegistry* registry = new CWSIntentsRegistry(
- profile->GetRequestContext());
- return registry;
-}
-
-bool CWSIntentsRegistryFactory::ServiceRedirectedInIncognito() const {
- // TODO(groby): Do we have CWS access in incognito?
- return false;
-}
« no previous file with comments | « chrome/browser/intents/cws_intents_registry_factory.h ('k') | chrome/browser/intents/cws_intents_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698