This source file includes following definitions.
- SetMockInstallPromptForTesting
- OpenChromeExtension
- IsExtensionDownload
- OffStoreInstallAllowedByPrefs
#include "chrome/browser/download/download_crx_util.h"
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/download_item.h"
using content::BrowserThread;
using content::DownloadItem;
namespace download_crx_util {
void SetMockInstallPromptForTesting(ExtensionInstallPrompt* mock_prompt) {
NOTIMPLEMENTED();
}
scoped_refptr<extensions::CrxInstaller> OpenChromeExtension(
Profile* profile,
const DownloadItem& download_item) {
NOTIMPLEMENTED() << "CrxInstaller not implemented on Android";
scoped_refptr<extensions::CrxInstaller> installer(
extensions::CrxInstaller::CreateSilent(NULL));
return installer;
}
bool IsExtensionDownload(const DownloadItem& download_item) {
return false;
}
bool OffStoreInstallAllowedByPrefs(Profile* profile,
const content::DownloadItem& item) {
return false;
}
}