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

Unified Diff: chrome/browser/user_style_sheet_watcher_factory.cc

Issue 64843004: Get rid of user-level styles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to ToT Created 7 years, 1 month 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/user_style_sheet_watcher_factory.cc
diff --git a/chrome/browser/user_style_sheet_watcher_factory.cc b/chrome/browser/user_style_sheet_watcher_factory.cc
deleted file mode 100644
index a69f77e2a05a861cbd70a2b3c556d6dfc6b9a75c..0000000000000000000000000000000000000000
--- a/chrome/browser/user_style_sheet_watcher_factory.cc
+++ /dev/null
@@ -1,51 +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/user_style_sheet_watcher_factory.h"
-
-#include "chrome/browser/profiles/incognito_helpers.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/user_style_sheet_watcher.h"
-#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
-
-// static
-scoped_refptr<UserStyleSheetWatcher>
-UserStyleSheetWatcherFactory::GetForProfile(
- Profile* profile) {
- return static_cast<UserStyleSheetWatcher*>(
- GetInstance()->GetServiceForBrowserContext(profile, true).get());
-}
-
-// static
-UserStyleSheetWatcherFactory* UserStyleSheetWatcherFactory::GetInstance() {
- return Singleton<UserStyleSheetWatcherFactory>::get();
-}
-
-UserStyleSheetWatcherFactory::UserStyleSheetWatcherFactory()
- : RefcountedBrowserContextKeyedServiceFactory(
- "UserStyleSheetWatcher",
- BrowserContextDependencyManager::GetInstance()) {
-}
-
-UserStyleSheetWatcherFactory::~UserStyleSheetWatcherFactory() {
-}
-
-scoped_refptr<RefcountedBrowserContextKeyedService>
-UserStyleSheetWatcherFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- Profile* profile = static_cast<Profile*>(context);
- scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher(
- new UserStyleSheetWatcher(profile, profile->GetPath()));
- user_style_sheet_watcher->Init();
- return user_style_sheet_watcher;
-}
-
-content::BrowserContext* UserStyleSheetWatcherFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- return chrome::GetBrowserContextRedirectedInIncognito(context);
-}
-
-bool UserStyleSheetWatcherFactory::ServiceIsNULLWhileTesting() const {
- return true;
-}
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_factory.h ('k') | chrome/browser/user_style_sheet_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698