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

Unified Diff: components/precache/content/precache_manager_factory.cc

Issue 1176253002: Fix IsPrecachingAllowed() to check Sync instead of Data Saver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaks per bengr. Created 5 years, 6 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: 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
deleted file mode 100644
index cafece95d810f021423cc9695d2aaaf8a35f71ed..0000000000000000000000000000000000000000
--- a/components/precache/content/precache_manager_factory.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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/keyed_service/content/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() {}
-
-KeyedService* PrecacheManagerFactory::BuildServiceInstanceFor(
- content::BrowserContext* browser_context) const {
- return new PrecacheManager(browser_context);
-}
-
-} // namespace precache
« no previous file with comments | « components/precache/content/precache_manager_factory.h ('k') | components/precache/content/precache_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698