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

Unified Diff: chrome/browser/cocoa/extensions/extension_action_context_menu.mm

Issue 1075006: Eliminate all UI thread decoding of extension images.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
Index: chrome/browser/cocoa/extensions/extension_action_context_menu.mm
===================================================================
--- chrome/browser/cocoa/extensions/extension_action_context_menu.mm (revision 42429)
+++ chrome/browser/cocoa/extensions/extension_action_context_menu.mm (working copy)
@@ -73,8 +73,8 @@
if (!browser)
return;
- ExtensionInstallUI client(browser->profile());
- client.ConfirmUninstall(this, extension_, uninstall_icon->get());
+ install_ui_.reset(new ExtensionInstallUI(browser->profile()));
+ install_ui_->ConfirmUninstall(this, extension_);
}
// The extension that we're loading the icon for. Weak.
@@ -83,6 +83,8 @@
// The uninstall icon shown by the confirmation dialog.
scoped_ptr<SkBitmap> uninstall_icon_;
+ scoped_ptr<ExtensionInstallUI> install_ui_;
+
DISALLOW_COPY_AND_ASSIGN(AsyncUninstaller);
};
« no previous file with comments | « chrome/browser/cocoa/extensions/browser_action_button.mm ('k') | chrome/browser/cocoa/location_bar_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698