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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_model.h

Issue 2450633004: Make ToolbarActionsModel ignore calls to AddComponentAction() before initialization (Closed)
Patch Set: Add a TODO Created 4 years, 1 month 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/ui/toolbar/toolbar_actions_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/toolbar_actions_model.h
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_model.h b/chrome/browser/ui/toolbar/toolbar_actions_model.h
index c5fc84c7972fff1109330abdb36d8fc92339ab2b..52785a3be3d235d6a8fca753d1dc6a366669d43a 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_model.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_model.h
@@ -181,6 +181,7 @@ class ToolbarActionsModel
void SetActionVisibility(const std::string& action_id, bool visible);
// ComponentMigrationHelper::ComponentActionDelegate:
+ // AddComponentAction() is a no-op if |actions_initialized_| is false.
void AddComponentAction(const std::string& action_id) override;
void RemoveComponentAction(const std::string& action_id) override;
bool HasComponentAction(const std::string& action_id) const override;
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/toolbar_actions_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698