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

Unified Diff: chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h

Issue 642343004: [ew] Simplify the entry watcher logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NULL -> nullptr Created 6 years, 2 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/extensions/api/file_system/entry_watcher_service_factory.h
diff --git a/chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h b/chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h
deleted file mode 100644
index 1f783d3cb1a297740c540eb743085811ce7699bb..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_H_
-#define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_H_
-
-#include "base/memory/singleton.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-
-namespace content {
-class BrowserContext;
-} // namespace content
-
-namespace extensions {
-
-class EntryWatcherService;
-
-// Creates instances of the EntryWatcherService class.
-class EntryWatcherServiceFactory : public BrowserContextKeyedServiceFactory {
- public:
- // Returns a service instance singleton per |context|, after creating it
- // (if necessary).
- static EntryWatcherService* Get(content::BrowserContext* context);
-
- // Returns a service instance for the context if exists. Otherwise, returns
- // NULL.
- static EntryWatcherService* FindExisting(content::BrowserContext* context);
-
- // Gets a singleton instance of the factory.
- static EntryWatcherServiceFactory* GetInstance();
-
- private:
- friend struct DefaultSingletonTraits<EntryWatcherServiceFactory>;
-
- EntryWatcherServiceFactory();
- ~EntryWatcherServiceFactory() override;
-
- // BrowserContextKeyedServiceFactory overrides:
- KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
- bool ServiceIsCreatedWithBrowserContext() const override;
-
- DISALLOW_COPY_AND_ASSIGN(EntryWatcherServiceFactory);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698