| Index: components/precache/content/precache_manager_factory.cc | 
| diff --git a/components/precache/content/precache_manager_factory.cc b/components/precache/content/precache_manager_factory.cc | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..bd1e6f2d1c20f6e4b25abcc2b01c82d1bbdd9d1f | 
| --- /dev/null | 
| +++ b/components/precache/content/precache_manager_factory.cc | 
| @@ -0,0 +1,36 @@ | 
| +// Copyright 2013 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 "components/precache/content/precache_manager_factory.h" | 
| + | 
| +#include "components/browser_context_keyed_service/browser_context_dependency_manager.h" | 
| +#include "components/precache/content/precache_manager.h" | 
| +#include "content/public/browser/browser_context.h" | 
| + | 
| +namespace precache { | 
| + | 
| +// static | 
| +PrecacheManager* PrecacheManagerFactory::GetForBrowserContext( | 
| +    content::BrowserContext* browser_context) { | 
| +  return static_cast<PrecacheManager*>( | 
| +      GetInstance()->GetServiceForBrowserContext(browser_context, true)); | 
| +} | 
| + | 
| +// static | 
| +PrecacheManagerFactory* PrecacheManagerFactory::GetInstance() { | 
| +  return Singleton<PrecacheManagerFactory>::get(); | 
| +} | 
| + | 
| +PrecacheManagerFactory::PrecacheManagerFactory() | 
| +    : BrowserContextKeyedServiceFactory( | 
| +          "PrecacheManager", BrowserContextDependencyManager::GetInstance()) {} | 
| + | 
| +PrecacheManagerFactory::~PrecacheManagerFactory() {} | 
| + | 
| +BrowserContextKeyedService* PrecacheManagerFactory::BuildServiceInstanceFor( | 
| +    content::BrowserContext* browser_context) const { | 
| +  return new PrecacheManager(browser_context); | 
| +} | 
| + | 
| +}  // namespace precache | 
|  |