| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h" | 5 #include "chrome/browser/ui/toolbar/component_toolbar_actions_factory.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/media/router/media_router_feature.h" | 10 #include "chrome/browser/media/router/media_router_feature.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 UnloadExtension(service, registry, kCastBetaExtensionId); | 76 UnloadExtension(service, registry, kCastBetaExtensionId); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void ComponentToolbarActionsFactory::UnloadExtension( | 79 void ComponentToolbarActionsFactory::UnloadExtension( |
| 80 ExtensionService* service, | 80 ExtensionService* service, |
| 81 extensions::ExtensionRegistry* registry, | 81 extensions::ExtensionRegistry* registry, |
| 82 const std::string& extension_id) { | 82 const std::string& extension_id) { |
| 83 if (registry->enabled_extensions().Contains(extension_id)) { | 83 if (registry->enabled_extensions().Contains(extension_id)) { |
| 84 service->UnloadExtension( | 84 service->UnloadExtension( |
| 85 extension_id, | 85 extension_id, |
| 86 extensions::UnloadedExtensionInfo::REASON_MIGRATED_TO_COMPONENT); | 86 extensions::UnloadedExtensionReason::MIGRATED_TO_COMPONENT); |
| 87 } | 87 } |
| 88 } | 88 } |
| OLD | NEW |