Home | History | Annotate | Download | only in download
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 //
      5 // Download code which handles CRX files (extensions, themes, apps, ...).
      6 
      7 #include "chrome/browser/download/download_crx_util.h"
      8 
      9 namespace download_crx_util {
     10 
     11 bool IsExtensionDownload(const content::DownloadItem& download_item) {
     12   // Extensions are not supported on Android. We want to treat them as
     13   // normal file downloads.
     14   return false;
     15 }
     16 
     17 bool OffStoreInstallAllowedByPrefs(Profile* profile,
     18                                    const content::DownloadItem& item) {
     19   // Extensions are not supported on Android, return the safe default.
     20   return false;
     21 }
     22 
     23 }  // namespace download_crx_util
     24