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

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

Issue 2803923002: [Media Router] Unload the legacy Cast extension at install (Closed)
Patch Set: Unload instead of uninstall Created 3 years, 8 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') | no next file » | 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 6d85465f625434334ac992d8c4bf380ca05b3f39..cc60cc8dff80532b8b1628c6b29c37eaf9e84b08 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/toolbar_actions_model.cc
@@ -271,11 +271,8 @@ void ToolbarActionsModel::OnReady() {
for (Observer& observer : observers_)
observer.OnToolbarModelInitialized();
- if (use_redesign_) {
- component_actions_factory_->UnloadMigratedExtensions(
- extensions::ExtensionSystem::Get(profile_)->extension_service(),
- extension_registry_);
- }
+ if (use_redesign_)
+ component_actions_factory_->UnloadMigratedExtensions();
}
size_t ToolbarActionsModel::FindNewPositionFromLastKnownGood(
« no previous file with comments | « chrome/browser/ui/toolbar/component_toolbar_actions_factory_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698