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

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

Issue 415813003: Improve extension icon prediction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final minor changes 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
Index: chrome/browser/extensions/extension_action_manager.h
diff --git a/chrome/browser/extensions/extension_action_manager.h b/chrome/browser/extensions/extension_action_manager.h
index b78e8a2bd8600e9674b291cd08ac3f9fa19ad13e..63069a9fd4b7fd2c8501038eba476f3c172d1d8d 100644
--- a/chrome/browser/extensions/extension_action_manager.h
+++ b/chrome/browser/extensions/extension_action_manager.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/scoped_observer.h"
+#include "chrome/common/extensions/api/extension_action/action_info.h"
#include "components/keyed_service/core/keyed_service.h"
#include "extensions/browser/extension_registry_observer.h"
@@ -41,6 +42,13 @@ class ExtensionActionManager : public KeyedService,
ExtensionAction* GetSystemIndicator(
const extensions::Extension& extension) const;
+ // Gets the best fit ExtensionAction for the given |extension|. This takes
+ // into account |extension|'s browser or page actions, if any, along with its
+ // name and any declared icons.
+ scoped_ptr<ExtensionAction> GetBestFitAction(
+ const extensions::Extension& extension,
+ extensions::ActionInfo::Type type) const;
+
private:
// Implement ExtensionRegistryObserver.
virtual void OnExtensionUnloaded(content::BrowserContext* browser_context,
« no previous file with comments | « chrome/browser/extensions/active_script_controller.cc ('k') | chrome/browser/extensions/extension_action_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698