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

Unified Diff: chrome/browser/extensions/api/storage/settings_frontend.h

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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/storage/settings_frontend.h
diff --git a/chrome/browser/extensions/api/storage/settings_frontend.h b/chrome/browser/extensions/api/storage/settings_frontend.h
index abda6c854b7f21d4a44690e3bbfaf1051438d577..82673bb67ca30d1f73945a6d2d5cde0f4f78dc41 100644
--- a/chrome/browser/extensions/api/storage/settings_frontend.h
+++ b/chrome/browser/extensions/api/storage/settings_frontend.h
@@ -10,12 +10,12 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/api/storage/settings_namespace.h"
#include "chrome/browser/extensions/api/storage/settings_observer.h"
#include "chrome/browser/extensions/api/storage/settings_storage_factory.h"
#include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.h"
#include "chrome/browser/extensions/api/storage/value_store_cache.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "sync/api/syncable_service.h"
namespace content {
@@ -28,7 +28,7 @@ namespace extensions {
// to SettingsBackend which lives on the FILE thread.
// All public methods, must be called on the UI thread, with the exception of
// GetBackendForSync(), which must be called on the FILE thread.
-class SettingsFrontend : public ProfileKeyedAPI {
+class SettingsFrontend : public BrowserContextKeyedAPI {
public:
// Returns the current instance for |context|.
static SettingsFrontend* Get(content::BrowserContext* context);
@@ -63,18 +63,18 @@ class SettingsFrontend : public ProfileKeyedAPI {
void DisableStorageForTesting(
settings_namespace::Namespace settings_namespace);
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<SettingsFrontend>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<SettingsFrontend>* GetFactoryInstance();
static const char* service_name();
static const bool kServiceRedirectedInIncognito = true;
static const bool kServiceIsNULLWhileTesting = true;
private:
- friend class ProfileKeyedAPIFactory<SettingsFrontend>;
+ friend class BrowserContextKeyedAPIFactory<SettingsFrontend>;
typedef std::map<settings_namespace::Namespace, ValueStoreCache*> CacheMap;
- // Constructor for normal ProfileKeyedAPI usage.
+ // Constructor for normal BrowserContextKeyedAPI usage.
explicit SettingsFrontend(content::BrowserContext* context);
// Constructor for tests.
« no previous file with comments | « chrome/browser/extensions/api/spellcheck/spellcheck_api.cc ('k') | chrome/browser/extensions/api/storage/settings_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698