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

Unified Diff: chrome/browser/extensions/extension_commands_global_registry.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/extension_commands_global_registry.h
diff --git a/chrome/browser/extensions/extension_commands_global_registry.h b/chrome/browser/extensions/extension_commands_global_registry.h
index 04e8bd839c867701016cac9bd5320df775deb8bc..c84e2f2a1c35495c425b994629079c218cfcfe17 100644
--- a/chrome/browser/extensions/extension_commands_global_registry.h
+++ b/chrome/browser/extensions/extension_commands_global_registry.h
@@ -14,13 +14,12 @@
#include "chrome/browser/extensions/global_shortcut_listener.h"
#include "ui/base/accelerators/accelerator.h"
-class Profile;
-
-namespace extensions {
-class Extension;
+namespace content {
+class BrowserContext;
}
namespace extensions {
+class Extension;
// ExtensionCommandsGlobalRegistry is a class that handles the cross-platform
// implementation of the global shortcut registration for the Extension Commands
@@ -40,9 +39,9 @@ class ExtensionCommandsGlobalRegistry
// Convenience method to get the ExtensionCommandsGlobalRegistry for a
// profile.
- static ExtensionCommandsGlobalRegistry* Get(Profile* profile);
+ static ExtensionCommandsGlobalRegistry* Get(content::BrowserContext* context);
- explicit ExtensionCommandsGlobalRegistry(Profile* profile);
+ explicit ExtensionCommandsGlobalRegistry(content::BrowserContext* context);
virtual ~ExtensionCommandsGlobalRegistry();
private:
@@ -65,8 +64,8 @@ class ExtensionCommandsGlobalRegistry
// registered for has been pressed.
virtual void OnKeyPressed(const ui::Accelerator& accelerator) OVERRIDE;
- // Weak pointer to our profile. Not owned by us.
- Profile* profile_;
+ // Weak pointer to our browser context. Not owned by us.
+ content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(ExtensionCommandsGlobalRegistry);
};
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | chrome/browser/extensions/extension_commands_global_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698