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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_manager_private_api_factory.h

Issue 553393002: Get rid of FileManagerPrivateAPI class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 3 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/chromeos/extensions/file_manager/file_manager_private_api_factory.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/file_manager_private_api_factory.h b/chrome/browser/chromeos/extensions/file_manager/file_manager_private_api_factory.h
deleted file mode 100644
index 85e97d056a3912c84cb3bf13919de7814bf3b8d1..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/extensions/file_manager/file_manager_private_api_factory.h
+++ /dev/null
@@ -1,46 +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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_PRIVATE_API_FACTORY_H_
-#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_PRIVATE_API_FACTORY_H_
-
-#include "base/memory/singleton.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-
-class Profile;
-
-namespace file_manager {
-
-class FileManagerPrivateAPI;
-
-class FileManagerPrivateAPIFactory : public BrowserContextKeyedServiceFactory {
- public:
- // Returns the FileManagerPrivateAPI for |profile|, creating it if
- // it is not yet created.
- static FileManagerPrivateAPI* GetForProfile(Profile* profile);
-
- // Returns the FileManagerPrivateAPIFactory instance.
- static FileManagerPrivateAPIFactory* GetInstance();
-
- protected:
- // BrowserContextKeyedBaseFactory overrides:
- virtual content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const OVERRIDE;
- virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
- virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
-
- private:
- friend struct DefaultSingletonTraits<FileManagerPrivateAPIFactory>;
-
- FileManagerPrivateAPIFactory();
- virtual ~FileManagerPrivateAPIFactory();
-
- // BrowserContextKeyedServiceFactory:
- virtual KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* context) const OVERRIDE;
-};
-
-} // namespace file_manager
-
-#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_PRIVATE_API_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698