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

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

Issue 2450633004: Make ToolbarActionsModel ignore calls to AddComponentAction() before initialization (Closed)
Patch Set: Created 4 years, 2 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/component_migration_helper.h
diff --git a/chrome/browser/extensions/component_migration_helper.h b/chrome/browser/extensions/component_migration_helper.h
index 2e78b5ee736466286d45311fecdfeb0339a9c6cc..98d5a481fed58140fc0366b58f0e90dd2d00d707 100644
--- a/chrome/browser/extensions/component_migration_helper.h
+++ b/chrome/browser/extensions/component_migration_helper.h
@@ -77,6 +77,9 @@ class ComponentMigrationHelper : public ExtensionRegistryObserver {
// Returns |true| if the toolbar model has an action for |action_id|.
virtual bool HasComponentAction(const std::string& action_id) const = 0;
+
+ // Returns |true| if the toolbar actions have been initialized.
+ virtual bool ActionsInitialized() const = 0;
};
ComponentMigrationHelper(Profile* profile, ComponentActionDelegate* delegate);

Powered by Google App Engine
This is Rietveld 408576698