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

Unified Diff: chrome/browser/ui/webui/chrome_url_data_manager_factory.cc

Issue 12049052: Move core url data manager classes to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years, 11 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/ui/webui/chrome_url_data_manager_factory.cc
===================================================================
--- chrome/browser/ui/webui/chrome_url_data_manager_factory.cc (revision 178598)
+++ chrome/browser/ui/webui/chrome_url_data_manager_factory.cc (working copy)
@@ -1,39 +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/ui/webui/chrome_url_data_manager_factory.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_dependency_manager.h"
-#include "chrome/browser/profiles/profile_keyed_service.h"
-
-// static
-ChromeURLDataManager* ChromeURLDataManagerFactory::GetForProfile(
- Profile* profile) {
- return static_cast<ChromeURLDataManager*>(
- GetInstance()->GetServiceForProfile(profile, true));
-}
-
-// static
-ChromeURLDataManagerFactory* ChromeURLDataManagerFactory::GetInstance() {
- return Singleton<ChromeURLDataManagerFactory>::get();
-}
-
-ChromeURLDataManagerFactory::ChromeURLDataManagerFactory()
- : ProfileKeyedServiceFactory("ChromeURLDataManager",
- ProfileDependencyManager::GetInstance()) {
-}
-
-ChromeURLDataManagerFactory::~ChromeURLDataManagerFactory() {
-}
-
-ProfileKeyedService* ChromeURLDataManagerFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new ChromeURLDataManager(
- profile->GetChromeURLDataManagerBackendGetter());
-}
-
-bool ChromeURLDataManagerFactory::ServiceHasOwnInstanceInIncognito() const {
- return true;
-}
« no previous file with comments | « chrome/browser/ui/webui/chrome_url_data_manager_factory.h ('k') | chrome/browser/ui/webui/chrome_web_ui_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698