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

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

Issue 1612203002: [Media Router] Adds a contextual menu item to remove the MR component action. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/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 c2ba29896b4312af296ac06df334efd91de26029..e288edc3256e0e89ad603d342edac32719bfc66c 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_model.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_model.h
@@ -178,6 +178,12 @@ class ToolbarActionsModel
void RemoveComponentAction(const std::string& action_id) override;
bool HasComponentAction(const std::string& action_id) const override;
+ // Returns this toolbar's component migration helper. The helper is owned by
+ // |this|.
+ extensions::ComponentMigrationHelper* component_migration_helper() {
+ return component_migration_helper_.get();
+ }
+
void OnActionToolbarPrefChange();
// Highlights the actions specified by |action_ids|. This will cause

Powered by Google App Engine
This is Rietveld 408576698