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

Unified Diff: chrome/browser/extensions/api/commands/command_service.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/commands/command_service.h
diff --git a/chrome/browser/extensions/api/commands/command_service.h b/chrome/browser/extensions/api/commands/command_service.h
index 41c288fab5312cfbf0352f6278cb150315bb3538..e3e2e955cd8ba967b5c99452e5ff7bfa562c647f 100644
--- a/chrome/browser/extensions/api/commands/command_service.h
+++ b/chrome/browser/extensions/api/commands/command_service.h
@@ -8,12 +8,12 @@
#include <string>
#include "base/basictypes.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/common/extensions/command.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_source.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/common/extension.h"
class Profile;
@@ -39,7 +39,7 @@ namespace extensions {
// This service keeps track of preferences related to extension commands
// (assigning initial keybindings on install and removing them on deletion
// and answers questions related to which commands are active.
-class CommandService : public ProfileKeyedAPI,
+class CommandService : public BrowserContextKeyedAPI,
public content::NotificationObserver {
public:
// An enum specifying whether to fetch all extension commands or only active
@@ -72,8 +72,8 @@ class CommandService : public ProfileKeyedAPI,
explicit CommandService(content::BrowserContext* context);
virtual ~CommandService();
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<CommandService>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<CommandService>* GetFactoryInstance();
// Convenience method to get the CommandService for a profile.
static CommandService* Get(content::BrowserContext* context);
@@ -172,9 +172,9 @@ class CommandService : public ProfileKeyedAPI,
const content::NotificationDetails& details) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<CommandService>;
+ friend class BrowserContextKeyedAPIFactory<CommandService>;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "CommandService";
}
@@ -203,7 +203,8 @@ class CommandService : public ProfileKeyedAPI,
};
template <>
-void ProfileKeyedAPIFactory<CommandService>::DeclareFactoryDependencies();
+void
+ BrowserContextKeyedAPIFactory<CommandService>::DeclareFactoryDependencies();
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/cast_channel/cast_socket.cc ('k') | chrome/browser/extensions/api/commands/command_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698