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

Unified Diff: chrome/browser/extensions/api/commands/command_service.h

Issue 171813010: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context_ 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 26be796594988463e52d8f99619aff61e50c6568..c9c65ffe8ed2f8aa5783dbcdb14c9134229c2569 100644
--- a/chrome/browser/extensions/api/commands/command_service.h
+++ b/chrome/browser/extensions/api/commands/command_service.h
@@ -22,6 +22,10 @@ namespace base {
class DictionaryValue;
}
+namespace content {
+class BrowserContext;
+}
+
namespace ui {
class Accelerator;
}
@@ -58,14 +62,14 @@ class CommandService : public ProfileKeyedAPI,
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
// Constructs a CommandService object for the given profile.
- explicit CommandService(Profile* profile);
+ explicit CommandService(content::BrowserContext* context);
virtual ~CommandService();
// ProfileKeyedAPI implementation.
static ProfileKeyedAPIFactory<CommandService>* GetFactoryInstance();
// Convenience method to get the CommandService for a profile.
- static CommandService* Get(Profile* profile);
+ static CommandService* Get(content::BrowserContext* context);
// Return true if the specified accelerator is one of the following multimedia
// keys: Next Track key, Previous Track key, Stop Media key, Play/Pause Media

Powered by Google App Engine
This is Rietveld 408576698