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

Side by Side Diff: chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/browser_actions_bar_browsertest.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698