Chromium Code Reviews| Index: chrome/browser/extensions/tab_helper.h |
| diff --git a/chrome/browser/extensions/tab_helper.h b/chrome/browser/extensions/tab_helper.h |
| index 0228adc8a4f6cf4fd5f8742d8a4c4e7e7dbefa45..521b119f3f5b81edcab9023b01bd4f37f337e3b5 100644 |
| --- a/chrome/browser/extensions/tab_helper.h |
| +++ b/chrome/browser/extensions/tab_helper.h |
| @@ -37,7 +37,6 @@ class ScriptExecutor; |
| // Per-tab extension helper. Also handles non-extension apps. |
| class TabHelper : public content::WebContentsObserver, |
| public ExtensionFunctionDispatcher::Delegate, |
| - public ImageLoadingTracker::Observer, |
| public AppNotifyChannelSetup::Delegate, |
| public base::SupportsWeakPtr<TabHelper>, |
| public content::NotificationObserver, |
| @@ -200,13 +199,9 @@ class TabHelper : public content::WebContentsObserver, |
| // ImageLoadingTracker to load the extension's image. |
| void UpdateExtensionAppIcon(const Extension* extension); |
| - const Extension* GetExtension( |
| - const std::string& extension_app_id); |
| + const Extension* GetExtension(const std::string& extension_app_id); |
| - // ImageLoadingTracker::Observer. |
| - virtual void OnImageLoaded(const gfx::Image& image, |
| - const std::string& extension_id, |
| - int index) OVERRIDE; |
| + void OnImageLoaded(const gfx::Image& image); |
| // WebstoreStandaloneInstaller::Callback. |
| virtual void OnInlineInstallComplete(int install_id, |
| @@ -247,9 +242,6 @@ class TabHelper : public content::WebContentsObserver, |
| // Process any extension messages coming from the tab. |
| ExtensionFunctionDispatcher extension_function_dispatcher_; |
| - // Used for loading extension_app_icon_. |
| - scoped_ptr<ImageLoadingTracker> extension_app_image_loader_; |
| - |
| // Cached web app info data. |
| WebApplicationInfo web_app_info_; |
| @@ -269,6 +261,8 @@ class TabHelper : public content::WebContentsObserver, |
| Profile* profile_; |
| + base::WeakPtrFactory<TabHelper> image_loader_ptr_factory_; |
|
asargent_no_longer_on_chrome
2013/01/23 01:02:30
It might be worth adding a brief comment here that
|
| + |
| DISALLOW_COPY_AND_ASSIGN(TabHelper); |
| }; |