| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extensions/extension_context_menu_model.h" | 5 #include "chrome/browser/extensions/extension_context_menu_model.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | |
| 8 #include "chrome/browser/browser.h" | 7 #include "chrome/browser/browser.h" |
| 9 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/extension_tabs_module.h" | 9 #include "chrome/browser/extensions/extension_tabs_module.h" |
| 11 #include "chrome/browser/extensions/extensions_service.h" | 10 #include "chrome/browser/extensions/extensions_service.h" |
| 12 #include "chrome/browser/pref_service.h" | 11 #include "chrome/browser/pref_service.h" |
| 13 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
| 14 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
| 15 #include "chrome/common/extensions/extension_action.h" | 14 #include "chrome/common/extensions/extension_action.h" |
| 16 #include "chrome/common/extensions/extension_constants.h" | 15 #include "chrome/common/extensions/extension_constants.h" |
| 17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 132 |
| 134 std::string id = extension_->id(); | 133 std::string id = extension_->id(); |
| 135 profile_->GetExtensionsService()->UninstallExtension(id, false); | 134 profile_->GetExtensionsService()->UninstallExtension(id, false); |
| 136 | 135 |
| 137 Release(); | 136 Release(); |
| 138 } | 137 } |
| 139 | 138 |
| 140 void ExtensionContextMenuModel::InstallUIAbort() { | 139 void ExtensionContextMenuModel::InstallUIAbort() { |
| 141 Release(); | 140 Release(); |
| 142 } | 141 } |
| OLD | NEW |