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

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

Issue 2693063003: Unload old Cast extensions after initializing ToolbarActionsModel (Closed)
Patch Set: Remove virtual, rebase Created 3 years, 10 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 | « chrome/browser/ui/toolbar/component_toolbar_actions_factory_unittest.cc ('k') | chrome/test/BUILD.gn » ('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.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_model.cc b/chrome/browser/ui/toolbar/toolbar_actions_model.cc
index 3117eaa67c2c88ca91d7c76ab6e3ed3d5af55dec..c508e3da00a90f4a52797388a3cff33a51493c33 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/toolbar_actions_model.cc
@@ -268,6 +268,12 @@ void ToolbarActionsModel::OnReady() {
actions_initialized_ = true;
for (Observer& observer : observers_)
observer.OnToolbarModelInitialized();
+
+ if (use_redesign_) {
+ ComponentToolbarActionsFactory::GetInstance()->UnloadMigratedExtensions(
+ extensions::ExtensionSystem::Get(profile_)->extension_service(),
+ extension_registry_);
+ }
}
size_t ToolbarActionsModel::FindNewPositionFromLastKnownGood(
« no previous file with comments | « chrome/browser/ui/toolbar/component_toolbar_actions_factory_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698