Chromium Code Reviews| Index: chrome/browser/extensions/tab_helper.cc |
| diff --git a/chrome/browser/extensions/tab_helper.cc b/chrome/browser/extensions/tab_helper.cc |
| index e6ad1bc0f86f9854664673ec7559ac483b80b92c..bb53d7816708ea04621ca44234c86112246a3128 100644 |
| --- a/chrome/browser/extensions/tab_helper.cc |
| +++ b/chrome/browser/extensions/tab_helper.cc |
| @@ -106,8 +106,14 @@ TabHelper::TabHelper(content::WebContents* web_contents) |
| script_executor_(new ScriptExecutor(web_contents, |
| &script_execution_observers_)), |
| location_bar_controller_(new LocationBarController(web_contents)), |
| - image_loader_ptr_factory_(this), |
| - webstore_inline_installer_factory_(new WebstoreInlineInstallerFactory()) { |
| + image_loader_ptr_factory_(this) { |
| +#if defined(ENABLE_EXTENSIONS) |
|
Lei Zhang
2014/06/20 23:22:04
I'll likely land https://codereview.chromium.org/3
|
| + // TODO(thestig) Add this back to the initializer list when TabHelper is no |
| + // longer built on mobile. |
| + webstore_inline_installer_factory_.reset( |
| + new WebstoreInlineInstallerFactory()); |
| +#endif |
| + |
| // The ActiveTabPermissionManager requires a session ID; ensure this |
| // WebContents has one. |
| SessionTabHelper::CreateForWebContents(web_contents); |
| @@ -410,7 +416,6 @@ void TabHelper::OnInlineWebstoreInstall(int install_id, |
| Profile::FromBrowserContext(web_contents()->GetBrowserContext()); |
| WebstoreAPI::Get(profile)->OnInlineInstallStart( |
| return_route_id, this, webstore_item_id, listeners_mask); |
| -#endif |
| WebstoreStandaloneInstaller::Callback callback = |
| base::Bind(&TabHelper::OnInlineInstallComplete, base::Unretained(this), |
| @@ -422,6 +427,7 @@ void TabHelper::OnInlineWebstoreInstall(int install_id, |
| requestor_url, |
| callback)); |
| installer->BeginInstall(); |
| +#endif // defined(ENABLE_EXTENSIONS) |
| } |
| void TabHelper::OnGetAppInstallState(const GURL& requestor_url, |