| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/extensions/extension_action_context_menu_contro
ller.h" | 5 #import "chrome/browser/ui/cocoa/extensions/extension_action_context_menu_contro
ller.h" |
| 6 | 6 |
| 7 #include "base/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
| 8 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" | 8 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" |
| 9 #include "chrome/browser/extensions/extension_action_manager.h" | 9 #include "chrome/browser/extensions/extension_action_manager.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 extension_uninstall_dialog_->ConfirmUninstall(extension_); | 48 extension_uninstall_dialog_->ConfirmUninstall(extension_); |
| 49 } | 49 } |
| 50 | 50 |
| 51 virtual ~AsyncUninstaller() {} | 51 virtual ~AsyncUninstaller() {} |
| 52 | 52 |
| 53 // ExtensionUninstallDialog::Delegate: | 53 // ExtensionUninstallDialog::Delegate: |
| 54 virtual void ExtensionUninstallAccepted() OVERRIDE { | 54 virtual void ExtensionUninstallAccepted() OVERRIDE { |
| 55 extensions::ExtensionSystem::Get(profile_) | 55 extensions::ExtensionSystem::Get(profile_) |
| 56 ->extension_service() | 56 ->extension_service() |
| 57 ->UninstallExtension(extension_->id(), | 57 ->UninstallExtension(extension_->id(), |
| 58 ExtensionService::UNINSTALL_REASON_USER_INITIATED, | 58 UninstalledExtensionInfo::REASON_USER_INITIATED, |
| 59 NULL); | 59 NULL); |
| 60 } | 60 } |
| 61 virtual void ExtensionUninstallCanceled() OVERRIDE {} | 61 virtual void ExtensionUninstallCanceled() OVERRIDE {} |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 // The extension that's being uninstalled. | 64 // The extension that's being uninstalled. |
| 65 const Extension* extension_; | 65 const Extension* extension_; |
| 66 | 66 |
| 67 // The current profile. Weak. | 67 // The current profile. Weak. |
| 68 Profile* profile_; | 68 Profile* profile_; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 return; | 221 return; |
| 222 | 222 |
| 223 [ExtensionPopupController showURL:url | 223 [ExtensionPopupController showURL:url |
| 224 inBrowser:browser_ | 224 inBrowser:browser_ |
| 225 anchoredAt:popupPoint | 225 anchoredAt:popupPoint |
| 226 arrowLocation:info_bubble::kTopRight | 226 arrowLocation:info_bubble::kTopRight |
| 227 devMode:YES]; | 227 devMode:YES]; |
| 228 } | 228 } |
| 229 | 229 |
| 230 @end | 230 @end |
| OLD | NEW |