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

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

Issue 505373002: Remove Extension Loaded/Unloaded notifications from LocationBarView(Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master for cq Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/location_bar_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/location_bar_controller.h
diff --git a/chrome/browser/extensions/location_bar_controller.h b/chrome/browser/extensions/location_bar_controller.h
index 75bdda9693017f11cc1f3d482701005b73da5c84..93f16187f9f336675c411cce4bc12d12e78c4e4e 100644
--- a/chrome/browser/extensions/location_bar_controller.h
+++ b/chrome/browser/extensions/location_bar_controller.h
@@ -23,6 +23,7 @@ namespace extensions {
class ActiveScriptController;
class Extension;
+class ExtensionActionManager;
class ExtensionRegistry;
// Provides the UI with the current page actions for extensions. The execution
@@ -41,6 +42,9 @@ class LocationBarController : public ExtensionRegistryObserver {
private:
// ExtensionRegistryObserver implementation.
+ virtual void OnExtensionLoaded(
+ content::BrowserContext* browser_context,
+ const Extension* extnesion) OVERRIDE;
virtual void OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
@@ -52,6 +56,9 @@ class LocationBarController : public ExtensionRegistryObserver {
// The associated BrowserContext.
content::BrowserContext* browser_context_;
+ // The ExtensionActionManager to provide page actions.
+ ExtensionActionManager* action_manager_;
+
// The ActiveScriptController, which could also add actions for extensions if
// they have a pending script.
scoped_ptr<ActiveScriptController> active_script_controller_;
« no previous file with comments | « no previous file | chrome/browser/extensions/location_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698