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

Unified Diff: chrome/browser/download/download_crx_util_android.cc

Issue 535773002: Android: Remove more browser extensions code, including some that snuck back in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/download/download_crx_util_android.cc
diff --git a/chrome/browser/download/download_crx_util_android.cc b/chrome/browser/download/download_crx_util_android.cc
index 76c9d8120e1181acc55ebcd974f389da03ac1c90..c157540b303625fb22a3bd53c0460f8f0c005cb6 100644
--- a/chrome/browser/download/download_crx_util_android.cc
+++ b/chrome/browser/download/download_crx_util_android.cc
@@ -5,38 +5,10 @@
// Download code which handles CRX files (extensions, themes, apps, ...).
#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 {
-scoped_refptr<extensions::CrxInstaller> CreateCrxInstaller(
- Profile* profile,
- const content::DownloadItem& download_item) {
- NOTIMPLEMENTED() << "CrxInstaller not implemented on Android";
- scoped_refptr<extensions::CrxInstaller> installer(
- extensions::CrxInstaller::CreateSilent(NULL));
- return installer;
-}
-
-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) {
+bool IsExtensionDownload(const content::DownloadItem& download_item) {
// Extensions are not supported on Android. We want to treat them as
// normal file downloads.
return false;

Powered by Google App Engine
This is Rietveld 408576698