mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Update Inox patches to 54
Include more files in Windows zip package Use clang 3.9 on Debian
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ class WindowsBuilder(GNUPatchComponent, GYPMetaBuildComponent):
|
||||
with self._files_cfg.open() as cfg_file:
|
||||
exec(cfg_file.read(), exec_globals) # pylint: disable=exec-used
|
||||
for file_spec in exec_globals["FILES"]:
|
||||
if "dev" in file_spec["buildtype"] and "official" in file_spec["buildtype"]:
|
||||
if "official" in file_spec["buildtype"]:
|
||||
if "arch" in file_spec and not "32bit" in file_spec["arch"]:
|
||||
continue
|
||||
for file_path in (self._sandbox_dir /
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- ./components/search_engines/prepopulated_engines.json
|
||||
+++ ./components/search_engines/prepopulated_engines.json.new
|
||||
--- a/components/search_engines/prepopulated_engines.json
|
||||
+++ b/components/search_engines/prepopulated_engines.json
|
||||
@@ -36,6 +36,17 @@
|
||||
// The following engines are included in country lists and are added to the
|
||||
// list of search engines on the first run depending on user's country.
|
||||
@@ -10,7 +10,7 @@
|
||||
+ "favicon_url": "https://duckduckgo.com/favicon.ico",
|
||||
+ "search_url": "https://duckduckgo.com/?q={searchTerms}",
|
||||
+ "suggest_url": "https://duckduckgo.com/?q={searchTerms}&language={language}&kac=1",
|
||||
+ "new_tab_url": "about:blank",
|
||||
+ "new_tab_url": "https://duckduckgo.com/",
|
||||
+ "type": "SEARCH_ENGINE_DUCKDUCKGO",
|
||||
+ "id": 11
|
||||
+ },
|
||||
@@ -18,20 +18,23 @@
|
||||
"aol": {
|
||||
"name": "AOL",
|
||||
"keyword": "aol.com",
|
||||
--- ./components/search_engines/search_engine_type.h
|
||||
+++ ./components/search_engines/search_engine_type.h.new
|
||||
@@ -58,6 +58,7 @@ enum SearchEngineType {
|
||||
SEARCH_ENGINE_YAHOO,
|
||||
diff --git a/components/search_engines/search_engine_type.h b/components/search_engines/search_engine_type.h
|
||||
index f619714..4e8ba58 100644
|
||||
--- a/components/search_engines/search_engine_type.h
|
||||
+++ b/components/search_engines/search_engine_type.h
|
||||
@@ -60,6 +60,7 @@ enum SearchEngineType {
|
||||
SEARCH_ENGINE_YANDEX,
|
||||
SEARCH_ENGINE_ZOZNAM,
|
||||
SEARCH_ENGINE_360,
|
||||
+ SEARCH_ENGINE_DUCKDUCKGO,
|
||||
SEARCH_ENGINE_MAX // Bounding value needed for UMA histogram macro.
|
||||
};
|
||||
|
||||
|
||||
--- ./components/search_engines/template_url_prepopulate_data.cc
|
||||
+++ ./components/search_engines/template_url_prepopulate_data.cc.new
|
||||
@@ -48,441 +48,441 @@
|
||||
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
|
||||
index 8cf9d8d..9e13dec 100644
|
||||
--- a/components/search_engines/template_url_prepopulate_data.cc
|
||||
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
||||
@@ -50,441 +50,441 @@ namespace {
|
||||
|
||||
// Default (for countries with no better engine set)
|
||||
const PrepopulatedEngine* engines_default[] =
|
||||
@@ -130,8 +133,8 @@
|
||||
|
||||
// China
|
||||
const PrepopulatedEngine* engines_CN[] =
|
||||
- { &google, &baidu, &sogou, };
|
||||
+ { &duckduckgo, &google, &baidu, &sogou, };
|
||||
- { &google, &baidu, &sogou, &so_360};
|
||||
+ { &duckduckgo, &google, &baidu, &sogou, &so_360};
|
||||
|
||||
// Colombia
|
||||
const PrepopulatedEngine* engines_CO[] =
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
--- a/tools/gn/gn_main.cc.orig 2015-11-12 11:49:56.260549036 +0000
|
||||
+++ b/tools/gn/gn_main.cc 2015-11-12 11:50:14.780931485 +0000
|
||||
@@ -11,13 +11,7 @@
|
||||
#include "tools/gn/standard_out.h"
|
||||
#include "tools/gn/switches.h"
|
||||
|
||||
-// Only the GN-generated build makes this header for now.
|
||||
-// TODO(brettw) consider adding this if we need it in GYP.
|
||||
-#if defined(GN_BUILD)
|
||||
-#include "tools/gn/last_commit_position.h"
|
||||
-#else
|
||||
#define LAST_COMMIT_POSITION "UNKNOWN"
|
||||
-#endif
|
||||
|
||||
namespace {
|
||||
|
||||
--- a/tools/gn/BUILD.gn.orig 2015-11-12 11:50:43.513524769 +0000
|
||||
+++ b/tools/gn/BUILD.gn 2015-11-12 11:50:57.697817632 +0000
|
||||
@@ -227,7 +227,6 @@
|
||||
|
||||
deps = [
|
||||
":gn_lib",
|
||||
- ":last_commit_position",
|
||||
"//base",
|
||||
"//build/config/sanitizers:deps",
|
||||
]
|
||||
@@ -1,47 +1,18 @@
|
||||
--- ./chrome/browser/extensions/component_loader.cc
|
||||
+++ ./chrome/browser/extensions/component_loader.cc.new
|
||||
@@ -340,24 +340,12 @@
|
||||
}
|
||||
|
||||
void ComponentLoader::AddHangoutServicesExtension() {
|
||||
-#if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION)
|
||||
- Add(IDR_HANGOUT_SERVICES_MANIFEST,
|
||||
- base::FilePath(FILE_PATH_LITERAL("hangout_services")));
|
||||
-#endif
|
||||
}
|
||||
|
||||
void ComponentLoader::AddHotwordAudioVerificationApp() {
|
||||
- if (HotwordServiceFactory::IsAlwaysOnAvailable()) {
|
||||
- Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST,
|
||||
- base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification")));
|
||||
- }
|
||||
}
|
||||
|
||||
void ComponentLoader::AddHotwordHelperExtension() {
|
||||
- if (HotwordServiceFactory::IsHotwordAllowed(profile_)) {
|
||||
- Add(IDR_HOTWORD_MANIFEST,
|
||||
- base::FilePath(FILE_PATH_LITERAL("hotword")));
|
||||
- }
|
||||
}
|
||||
|
||||
void ComponentLoader::AddImageLoaderExtension() {
|
||||
@@ -445,15 +433,6 @@
|
||||
}
|
||||
|
||||
void ComponentLoader::AddWebStoreApp() {
|
||||
-#if defined(OS_CHROMEOS)
|
||||
- if (!IsNormalSession())
|
||||
- return;
|
||||
-#endif
|
||||
--- a/chrome/browser/extensions/component_loader.cc
|
||||
+++ b/chrome/browser/extensions/component_loader.cc
|
||||
@@ -453,11 +453,6 @@
|
||||
if (!IsNormalSession())
|
||||
return;
|
||||
#endif
|
||||
-
|
||||
- AddWithNameAndDescription(
|
||||
- IDR_WEBSTORE_MANIFEST, base::FilePath(FILE_PATH_LITERAL("web_store")),
|
||||
- l10n_util::GetStringUTF8(IDS_WEBSTORE_NAME_STORE),
|
||||
- l10n_util::GetStringUTF8(IDS_WEBSTORE_APP_DESCRIPTION));
|
||||
}
|
||||
|
||||
|
||||
scoped_refptr<const Extension> ComponentLoader::CreateExtension(
|
||||
@@ -504,9 +483,6 @@
|
||||
@@ -508,9 +503,6 @@
|
||||
DCHECK(!skip_session_components);
|
||||
Add(IDR_BOOKMARKS_MANIFEST,
|
||||
base::FilePath(FILE_PATH_LITERAL("bookmark_manager")));
|
||||
@@ -49,19 +20,32 @@
|
||||
- Add(IDR_CLOUDPRINT_MANIFEST,
|
||||
- base::FilePath(FILE_PATH_LITERAL("cloud_print")));
|
||||
#endif
|
||||
|
||||
|
||||
if (!skip_session_components) {
|
||||
@@ -583,13 +559,6 @@
|
||||
@@ -586,13 +578,6 @@
|
||||
AddHotwordAudioVerificationApp();
|
||||
AddHotwordHelperExtension();
|
||||
AddImageLoaderExtension();
|
||||
|
||||
-
|
||||
- bool install_feedback = enable_background_extensions_during_testing;
|
||||
-#if defined(GOOGLE_CHROME_BUILD)
|
||||
- install_feedback = true;
|
||||
-#endif // defined(GOOGLE_CHROME_BUILD)
|
||||
- if (install_feedback)
|
||||
- Add(IDR_FEEDBACK_MANIFEST, base::FilePath(FILE_PATH_LITERAL("feedback")));
|
||||
}
|
||||
|
||||
#if defined(OS_CHROMEOS)
|
||||
--- a/chrome/browser/extensions/external_component_loader.cc
|
||||
+++ b/chrome/browser/extensions/external_component_loader.cc
|
||||
@@ -39,10 +39,6 @@
|
||||
|
||||
void ExternalComponentLoader::StartLoading() {
|
||||
prefs_.reset(new base::DictionaryValue());
|
||||
- AddExternalExtension(extension_misc::kInAppPaymentsSupportAppId);
|
||||
-
|
||||
#if defined(ENABLE_SETTINGS_APP)
|
||||
Add(IDR_SETTINGS_APP_MANIFEST,
|
||||
base::FilePath(FILE_PATH_LITERAL("settings_app")));
|
||||
- if (HotwordServiceFactory::IsHotwordAllowed(profile_))
|
||||
- AddExternalExtension(extension_misc::kHotwordSharedModuleId);
|
||||
|
||||
#if defined(OS_CHROMEOS)
|
||||
{
|
||||
|
||||
+107
-71
@@ -11,7 +11,7 @@
|
||||
- serialized_report, base::Bind(&base::DoNothing));
|
||||
- }
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
@@ -1535,7 +1531,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
||||
// Disable client-side phishing detection in the renderer if it is
|
||||
@@ -25,7 +25,7 @@
|
||||
@@ -2077,11 +2073,9 @@ void ChromeContentBrowserClient::AllowCertificateError(
|
||||
if (expired_previous_decision)
|
||||
options_mask |= SSLErrorUI::EXPIRED_BUT_PREVIOUSLY_ALLOWED;
|
||||
|
||||
|
||||
- safe_browsing::SafeBrowsingService* safe_browsing_service =
|
||||
- g_browser_process->safe_browsing_service();
|
||||
std::unique_ptr<SafeBrowsingSSLCertReporter> cert_reporter(
|
||||
@@ -41,7 +41,7 @@
|
||||
@@ -452,12 +452,12 @@ ProfileImpl::ProfileImpl(
|
||||
path_, sequenced_task_runner, create_mode == CREATE_MODE_SYNCHRONOUS);
|
||||
#endif
|
||||
|
||||
|
||||
- scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service(
|
||||
- g_browser_process->safe_browsing_service());
|
||||
- if (safe_browsing_service.get()) {
|
||||
@@ -54,14 +54,14 @@
|
||||
+ // pref_validation_delegate_ =
|
||||
+ // safe_browsing_service->CreatePreferenceValidationDelegate(this);
|
||||
+ //}
|
||||
|
||||
|
||||
{
|
||||
prefs_ = chrome_prefs::CreateProfilePrefs(
|
||||
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
||||
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
||||
@@ -276,8 +276,7 @@ void AppendComponentUpdaterThrottles(
|
||||
} // namespace
|
||||
|
||||
|
||||
ChromeResourceDispatcherHostDelegate::ChromeResourceDispatcherHostDelegate()
|
||||
- : download_request_limiter_(g_browser_process->download_request_limiter()),
|
||||
- safe_browsing_(g_browser_process->safe_browsing_service())
|
||||
@@ -75,7 +75,7 @@
|
||||
ScopedVector<content::ResourceThrottle>* throttles) {
|
||||
- if (safe_browsing_.get())
|
||||
- safe_browsing_->OnResourceRequest(request);
|
||||
|
||||
|
||||
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
|
||||
bool is_prerendering =
|
||||
@@ -488,13 +485,13 @@ void ChromeResourceDispatcherHostDelegate::AppendStandardResourceThrottles(
|
||||
@@ -85,7 +85,7 @@
|
||||
- request, resource_context, resource_type, safe_browsing_.get());
|
||||
+ request, resource_context, resource_type, nullptr);
|
||||
#endif // defined(OS_ANDROID)
|
||||
|
||||
|
||||
#if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
|
||||
if (!first_throttle && io_data->safe_browsing_enabled()->GetValue()) {
|
||||
first_throttle = SafeBrowsingResourceThrottle::MaybeCreate(
|
||||
@@ -93,7 +93,7 @@
|
||||
+ request, resource_type, nullptr);
|
||||
}
|
||||
#endif // defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
|
||||
|
||||
|
||||
--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
||||
@@ -179,7 +179,7 @@ BadClockBlockingPage* CreateBadClockBlockingPage(
|
||||
@@ -146,7 +146,7 @@
|
||||
@@ -51,11 +51,11 @@ void BlacklistStateFetcher::Request(const std::string& id,
|
||||
if (request_already_sent)
|
||||
return;
|
||||
|
||||
|
||||
- if (!url_request_context_getter_ && g_browser_process &&
|
||||
- g_browser_process->safe_browsing_service()) {
|
||||
- url_request_context_getter_ =
|
||||
@@ -157,13 +157,13 @@
|
||||
+ // url_request_context_getter_ =
|
||||
+ // g_browser_process->safe_browsing_service()->url_request_context();
|
||||
+ //}
|
||||
|
||||
|
||||
SendRequest(id);
|
||||
}
|
||||
@@ -79,11 +79,11 @@ void BlacklistStateFetcher::SendRequest(const std::string& id) {
|
||||
fetcher->Start();
|
||||
}
|
||||
|
||||
|
||||
-void BlacklistStateFetcher::SetSafeBrowsingConfig(
|
||||
- const safe_browsing::SafeBrowsingProtocolConfig& config) {
|
||||
- safe_browsing_config_.reset(
|
||||
@@ -174,12 +174,12 @@
|
||||
+// safe_browsing_config_.reset(
|
||||
+// new safe_browsing::SafeBrowsingProtocolConfig(config));
|
||||
+//}
|
||||
|
||||
|
||||
void BlacklistStateFetcher::SetURLRequestContextForTest(
|
||||
net::URLRequestContextGetter* request_context) {
|
||||
@@ -91,6 +91,7 @@ void BlacklistStateFetcher::SetURLRequestContextForTest(
|
||||
}
|
||||
|
||||
|
||||
GURL BlacklistStateFetcher::RequestUrl() const {
|
||||
+ /*
|
||||
std::string url = base::StringPrintf(
|
||||
@@ -192,38 +192,38 @@
|
||||
+ */
|
||||
+ return GURL();
|
||||
}
|
||||
|
||||
|
||||
void BlacklistStateFetcher::OnURLFetchComplete(const net::URLFetcher* source) {
|
||||
--- a/chrome/browser/extensions/blacklist_state_fetcher.h
|
||||
+++ b/chrome/browser/extensions/blacklist_state_fetcher.h
|
||||
@@ -33,8 +33,8 @@ class BlacklistStateFetcher : public net::URLFetcherDelegate {
|
||||
|
||||
|
||||
virtual void Request(const std::string& id, const RequestCallback& callback);
|
||||
|
||||
|
||||
- void SetSafeBrowsingConfig(
|
||||
- const safe_browsing::SafeBrowsingProtocolConfig& config);
|
||||
+ //void SetSafeBrowsingConfig(
|
||||
+ // const safe_browsing::SafeBrowsingProtocolConfig& config);
|
||||
|
||||
|
||||
void SetURLRequestContextForTest(
|
||||
net::URLRequestContextGetter* request_context);
|
||||
@@ -53,8 +53,8 @@ class BlacklistStateFetcher : public net::URLFetcherDelegate {
|
||||
// ID for URLFetchers for testing.
|
||||
int url_fetcher_id_;
|
||||
|
||||
|
||||
- std::unique_ptr<safe_browsing::SafeBrowsingProtocolConfig>
|
||||
- safe_browsing_config_;
|
||||
+ //std::unique_ptr<safe_browsing::SafeBrowsingProtocolConfig>
|
||||
+ // safe_browsing_config_;
|
||||
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
|
||||
scoped_refptr<net::URLRequestContextGetter> parent_request_context_for_test_;
|
||||
|
||||
|
||||
--- a/chrome/browser/browsing_data/browsing_data_remover.cc
|
||||
+++ b/chrome/browser/browsing_data/browsing_data_remover.cc
|
||||
@@ -642,38 +642,6 @@ void BrowsingDataRemover::RemoveImpl(
|
||||
storage_partition_remove_mask |=
|
||||
content::StoragePartition::REMOVE_DATA_MASK_COOKIES;
|
||||
|
||||
|
||||
- // Clear the safebrowsing cookies only if time period is for "all time". It
|
||||
- // doesn't make sense to apply the time period of deleting in the last X
|
||||
- // hours/days to the safebrowsing cookies since they aren't the result of
|
||||
@@ -258,11 +258,11 @@
|
||||
-
|
||||
MediaDeviceIDSalt::Reset(profile_->GetPrefs());
|
||||
}
|
||||
|
||||
|
||||
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
|
||||
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
|
||||
@@ -208,13 +208,6 @@ ChromeDownloadManagerDelegate::~ChromeDownloadManagerDelegate() {
|
||||
|
||||
|
||||
void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) {
|
||||
download_manager_ = dm;
|
||||
-
|
||||
@@ -273,10 +273,10 @@
|
||||
- sb_service->AddDownloadManager(dm);
|
||||
- }
|
||||
}
|
||||
|
||||
|
||||
void ChromeDownloadManagerDelegate::Shutdown() {
|
||||
@@ -450,16 +443,6 @@ void ChromeDownloadManagerDelegate::ChooseSavePath(
|
||||
|
||||
|
||||
void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName(
|
||||
base::FilePath* filename) {
|
||||
- safe_browsing::FileTypePolicies* file_type_policies =
|
||||
@@ -290,7 +290,7 @@
|
||||
- l10n_util::GetStringUTF8(IDS_DEFAULT_DOWNLOAD_FILENAME));
|
||||
- *filename = filename->AddExtension(default_filename.BaseName().value());
|
||||
}
|
||||
|
||||
|
||||
void ChromeDownloadManagerDelegate::OpenDownloadUsingPlatformHandler(
|
||||
--- a/chrome/browser/browser_process_impl.cc
|
||||
+++ b/chrome/browser/browser_process_impl.cc
|
||||
@@ -322,7 +322,7 @@
|
||||
@@ -843,22 +839,6 @@ StatusTray* BrowserProcessImpl::status_tray() {
|
||||
return status_tray_.get();
|
||||
}
|
||||
|
||||
|
||||
-safe_browsing::SafeBrowsingService*
|
||||
-BrowserProcessImpl::safe_browsing_service() {
|
||||
- DCHECK(CalledOnValidThread());
|
||||
@@ -345,7 +345,7 @@
|
||||
@@ -1128,16 +1108,6 @@ void BrowserProcessImpl::CreateBackgroundPrintingManager() {
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
-void BrowserProcessImpl::CreateSafeBrowsingService() {
|
||||
- DCHECK(!safe_browsing_service_);
|
||||
- // Set this flag to true so that we don't retry indefinitely to
|
||||
@@ -370,11 +370,11 @@
|
||||
- override;
|
||||
subresource_filter::RulesetService* subresource_filter_ruleset_service()
|
||||
override;
|
||||
|
||||
|
||||
@@ -253,9 +250,6 @@ class BrowserProcessImpl : public BrowserProcess,
|
||||
std::unique_ptr<BackgroundModeManager> background_mode_manager_;
|
||||
#endif
|
||||
|
||||
|
||||
- bool created_safe_browsing_service_;
|
||||
- scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_;
|
||||
-
|
||||
@@ -384,7 +384,7 @@
|
||||
--- a/chrome/browser/metrics/chrome_metrics_services_manager_client.cc
|
||||
+++ b/chrome/browser/metrics/chrome_metrics_services_manager_client.cc
|
||||
@@ -72,21 +72,7 @@ ChromeMetricsServicesManagerClient::GetURLRequestContext() {
|
||||
|
||||
|
||||
bool ChromeMetricsServicesManagerClient::IsSafeBrowsingEnabled(
|
||||
const base::Closure& on_update_callback) {
|
||||
- // Start listening for updates to SB service state. This is done here instead
|
||||
@@ -404,14 +404,14 @@
|
||||
- return sb_service && sb_service->enabled_by_prefs();
|
||||
+ return false;
|
||||
}
|
||||
|
||||
|
||||
bool ChromeMetricsServicesManagerClient::IsMetricsReportingEnabled() {
|
||||
--- a/chrome/browser/browser_process.h
|
||||
+++ b/chrome/browser/browser_process.h
|
||||
@@ -42,10 +42,6 @@ class WatchDogThread;
|
||||
class WebRtcLogUploader;
|
||||
#endif
|
||||
|
||||
|
||||
-namespace safe_browsing {
|
||||
-class SafeBrowsingService;
|
||||
-}
|
||||
@@ -422,7 +422,7 @@
|
||||
@@ -111,10 +107,6 @@ namespace rappor {
|
||||
class RapporService;
|
||||
}
|
||||
|
||||
|
||||
-namespace safe_browsing {
|
||||
-class ClientSideDetectionService;
|
||||
-}
|
||||
@@ -433,7 +433,7 @@
|
||||
@@ -218,14 +210,6 @@ class BrowserProcess {
|
||||
// on this platform (or this is a unit test).
|
||||
virtual StatusTray* status_tray() = 0;
|
||||
|
||||
|
||||
- // Returns the SafeBrowsing service.
|
||||
- virtual safe_browsing::SafeBrowsingService* safe_browsing_service() = 0;
|
||||
-
|
||||
@@ -448,7 +448,7 @@
|
||||
--- a/chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.h
|
||||
+++ b/chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.h
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
-#include "chrome/browser/download/download_danger_prompt.h"
|
||||
@@ -458,7 +458,7 @@
|
||||
@@ -113,18 +112,6 @@ class MdDownloadsDOMHandler : public content::WebContentsObserver,
|
||||
// null-checking |original_notifier_|.
|
||||
content::DownloadManager* GetOriginalNotifierManager() const;
|
||||
|
||||
|
||||
- // Displays a native prompt asking the user for confirmation after accepting
|
||||
- // the dangerous download specified by |dangerous|. The function returns
|
||||
- // immediately, and will invoke DangerPromptAccepted() asynchronously if the
|
||||
@@ -485,18 +485,18 @@
|
||||
#include "chrome/browser/download/download_item_model.h"
|
||||
#include "chrome/browser/download/download_prefs.h"
|
||||
@@ -193,9 +192,6 @@ void MdDownloadsDOMHandler::HandleDrag(const base::ListValue* args) {
|
||||
|
||||
|
||||
void MdDownloadsDOMHandler::HandleSaveDangerous(const base::ListValue* args) {
|
||||
CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS);
|
||||
- content::DownloadItem* file = GetDownloadByValue(args);
|
||||
- if (file)
|
||||
- ShowDangerPrompt(file);
|
||||
}
|
||||
|
||||
|
||||
void MdDownloadsDOMHandler::HandleDiscardDangerous(
|
||||
@@ -297,12 +293,6 @@ void MdDownloadsDOMHandler::RemoveDownloads(const DownloadVector& to_remove) {
|
||||
IdSet ids;
|
||||
|
||||
|
||||
for (auto* download : to_remove) {
|
||||
- if (download->IsDangerous()) {
|
||||
- // Don't allow users to revive dangerous downloads; just nuke 'em.
|
||||
@@ -510,7 +510,7 @@
|
||||
@@ -355,33 +345,6 @@ void MdDownloadsDOMHandler::FinalizeRemovals() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-void MdDownloadsDOMHandler::ShowDangerPrompt(
|
||||
- content::DownloadItem* dangerous_item) {
|
||||
- DownloadDangerPrompt* danger_prompt = DownloadDangerPrompt::Create(
|
||||
@@ -552,9 +552,9 @@
|
||||
#include "chrome/browser/download/download_prefs.h"
|
||||
#include "chrome/browser/download/download_query.h"
|
||||
@@ -1237,9 +1236,6 @@ DownloadsAcceptDangerFunction::DownloadsAcceptDangerFunction() {}
|
||||
|
||||
|
||||
DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() {}
|
||||
|
||||
|
||||
-DownloadsAcceptDangerFunction::OnPromptCreatedCallback*
|
||||
- DownloadsAcceptDangerFunction::on_prompt_created_ = NULL;
|
||||
-
|
||||
@@ -601,7 +601,7 @@
|
||||
- SendResponse(error_.empty());
|
||||
+ download_item->ValidateDangerousDownload();
|
||||
}
|
||||
|
||||
|
||||
DownloadsShowFunction::DownloadsShowFunction() {}
|
||||
--- a/chrome/browser/extensions/api/downloads/downloads_api.h
|
||||
+++ b/chrome/browser/extensions/api/downloads/downloads_api.h
|
||||
@@ -614,7 +614,7 @@
|
||||
#include "chrome/browser/extensions/chrome_extension_function.h"
|
||||
#include "chrome/common/extensions/api/downloads.h"
|
||||
@@ -193,25 +192,16 @@ class DownloadsRemoveFileFunction : public ChromeAsyncExtensionFunction {
|
||||
|
||||
|
||||
class DownloadsAcceptDangerFunction : public ChromeAsyncExtensionFunction {
|
||||
public:
|
||||
- typedef base::Callback<void(DownloadDangerPrompt*)> OnPromptCreatedCallback;
|
||||
@@ -626,19 +626,19 @@
|
||||
DECLARE_EXTENSION_FUNCTION("downloads.acceptDanger", DOWNLOADS_ACCEPTDANGER)
|
||||
DownloadsAcceptDangerFunction();
|
||||
bool RunAsync() override;
|
||||
|
||||
|
||||
protected:
|
||||
~DownloadsAcceptDangerFunction() override;
|
||||
- void DangerPromptCallback(int download_id,
|
||||
- DownloadDangerPrompt::Action action);
|
||||
|
||||
|
||||
private:
|
||||
void PromptOrWait(int download_id, int retries);
|
||||
|
||||
|
||||
- static OnPromptCreatedCallback* on_prompt_created_;
|
||||
DISALLOW_COPY_AND_ASSIGN(DownloadsAcceptDangerFunction);
|
||||
};
|
||||
|
||||
|
||||
--- a/chrome/chrome_browser_ui.gypi
|
||||
+++ b/chrome/chrome_browser_ui.gypi
|
||||
@@ -981,8 +981,6 @@
|
||||
@@ -676,13 +676,13 @@
|
||||
using content::BrowserThread;
|
||||
using content::DownloadManager;
|
||||
-using safe_browsing::FileTypePolicies;
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -184,13 +183,7 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profile_(profile) {
|
||||
base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) +
|
||||
extension);
|
||||
|
||||
|
||||
- // Note that the list of file types that are not allowed to open
|
||||
- // automatically can change in the future. When the list is tightened, it is
|
||||
- // expected that some entries in the users' auto open list will get dropped
|
||||
@@ -693,7 +693,7 @@
|
||||
+ auto_open_.insert(extension);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -315,9 +308,6 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension(
|
||||
bool DownloadPrefs::EnableAutoOpenBasedOnExtension(
|
||||
const base::FilePath& file_name) {
|
||||
@@ -701,14 +701,14 @@
|
||||
- if (!FileTypePolicies::GetInstance()->IsAllowedToOpenAutomatically(
|
||||
- file_name))
|
||||
- return false;
|
||||
|
||||
|
||||
DCHECK(extension[0] == base::FilePath::kExtensionSeparator);
|
||||
extension.erase(0, 1);
|
||||
--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc
|
||||
+++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc
|
||||
@@ -35,20 +35,6 @@ const uint8_t kPublicKeySHA256[32] = {
|
||||
const char kFileTypePoliciesManifestName[] = "File Type Policies";
|
||||
|
||||
|
||||
void LoadFileTypesFromDisk(const base::FilePath& pb_path) {
|
||||
- if (pb_path.empty())
|
||||
- return;
|
||||
@@ -725,39 +725,75 @@
|
||||
- safe_browsing::FileTypePolicies::GetInstance()->PopulateFromDynamicUpdate(
|
||||
- binary_pb);
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
--- a/chrome/browser/download/download_target_determiner.cc
|
||||
+++ b/chrome/browser/download/download_target_determiner.cc
|
||||
@@ -880,24 +880,7 @@ DownloadFileType::DangerLevel DownloadTargetDeterminer::GetDangerLevel(
|
||||
download_->HasUserGesture())
|
||||
return DownloadFileType::NOT_DANGEROUS;
|
||||
|
||||
@@ -892,29 +892,7 @@
|
||||
download_->HasUserGesture())
|
||||
return DownloadFileType::NOT_DANGEROUS;
|
||||
|
||||
- DownloadFileType::DangerLevel danger_level =
|
||||
- safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
|
||||
- virtual_path_.BaseName());
|
||||
-
|
||||
- // If the danger level is ALLOW_ON_USER_GESTURE and we have a user gesture AND
|
||||
- // there was a recorded visit to the referrer prior to today, then we are
|
||||
- // going to downgrade the danger_level to NOT_DANGEROUS. This prevents
|
||||
- // spurious prompting for moderately dangerous files that are downloaded from
|
||||
- // familiar sites.
|
||||
- // TODO(asanka): Check PAGE_TRANSITION_FROM_ADDRESS_BAR bit instead of
|
||||
- // comparing all bits with PageTransitionTypeIncludingQualifiersIs().
|
||||
- // A danger level of ALLOW_ON_USER_GESTURE is used to label potentially
|
||||
- // dangerous file types that have a high frequency of legitimate use. We would
|
||||
- // like to avoid prompting for the legitimate cases as much as possible. To
|
||||
- // that end, we consider a download to be legitimate if one of the following
|
||||
- // is true, and avoid prompting:
|
||||
- //
|
||||
- // * The user navigated to the download URL via the omnibox (either by typing
|
||||
- // the URL, pasting it, or using search).
|
||||
- //
|
||||
- // * The navigation that initiated the download has a user gesture associated
|
||||
- // with it AND the user the user is familiar with the referring origin. A
|
||||
- // user is considered familiar with a referring origin if a visit for a page
|
||||
- // from the same origin was recorded on the previous day or earlier.
|
||||
- if (danger_level == DownloadFileType::ALLOW_ON_USER_GESTURE &&
|
||||
- (ui::PageTransitionTypeIncludingQualifiersIs(
|
||||
- download_->GetTransitionType(),
|
||||
- ui::PAGE_TRANSITION_FROM_ADDRESS_BAR) ||
|
||||
- ((download_->GetTransitionType() &
|
||||
- ui::PAGE_TRANSITION_FROM_ADDRESS_BAR) != 0 ||
|
||||
- (download_->HasUserGesture() && visits == VISITED_REFERRER)))
|
||||
- return DownloadFileType::NOT_DANGEROUS;
|
||||
- return danger_level;
|
||||
+ return DownloadFileType::NOT_DANGEROUS;
|
||||
}
|
||||
|
||||
|
||||
void DownloadTargetDeterminer::OnDownloadDestroyed(
|
||||
--- a/chrome/browser/permissions/permission_uma_util.cc
|
||||
+++ b/chrome/browser/permissions/permission_uma_util.cc
|
||||
@@ -608,8 +608,6 @@
|
||||
requesting_origin, permission, profile),
|
||||
PermissionDecisionAutoBlocker::GetIgnoreCount(
|
||||
requesting_origin, permission, profile));
|
||||
- g_browser_process->safe_browsing_service()
|
||||
- ->ui_manager()->ReportPermissionAction(report_info);
|
||||
}
|
||||
|
||||
bool secure_origin = content::IsOriginSecure(requesting_origin);
|
||||
--- a/chrome/browser/ssl/chrome_security_state_model_client.cc
|
||||
+++ b/chrome/browser/ssl/chrome_security_state_model_client.cc
|
||||
@@ -159,16 +159,7 @@
|
||||
void CheckSafeBrowsingStatus(content::NavigationEntry* entry,
|
||||
content::WebContents* web_contents,
|
||||
SecurityStateModel::VisibleSecurityState* state) {
|
||||
- safe_browsing::SafeBrowsingService* sb_service =
|
||||
- g_browser_process->safe_browsing_service();
|
||||
- if (!sb_service)
|
||||
- return;
|
||||
- scoped_refptr<SafeBrowsingUIManager> sb_ui_manager = sb_service->ui_manager();
|
||||
- if (sb_ui_manager->IsUrlWhitelistedOrPendingForWebContents(
|
||||
- entry->GetURL(), false, entry, web_contents, false)) {
|
||||
- state->fails_malware_check = true;
|
||||
- state->initial_security_level = SecurityStateModel::SECURITY_ERROR;
|
||||
- }
|
||||
+ return;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
--- a/chrome/browser/download/download_commands.cc
|
||||
+++ b/chrome/browser/download/download_commands.cc
|
||||
@@ -180,9 +180,6 @@ bool DownloadCommands::IsCommandEnabled(Command command) const {
|
||||
@@ -185,9 +185,6 @@
|
||||
// filename. Don't base an "Always open" decision based on it. Also
|
||||
// exclude extensions.
|
||||
return download_item_->CanOpenDownload() &&
|
||||
@@ -7,6 +7,8 @@ debian/disable/default-browser-warning.patch
|
||||
debian/ps-print.patch
|
||||
debian/gpu-timeout.patch
|
||||
|
||||
inox-patchset/chromium-53.0.2785.92-last-commit-position.patch
|
||||
inox-patchset/fix-building-without-safebrowsing.patch
|
||||
inox-patchset/chromium-widevine.patch
|
||||
inox-patchset/disable-autofill-download-manager.patch
|
||||
inox-patchset/disable-google-url-tracker.patch
|
||||
@@ -57,7 +59,6 @@ ungoogled-chromium/disable-untraceable-urls.patch
|
||||
ungoogled-chromium/disable-ipv6-pinging.patch
|
||||
ungoogled-chromium/disable-profile-avatar-downloading.patch
|
||||
ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
|
||||
ungoogled-chromium/fix-building-without-safebrowsing.patch
|
||||
ungoogled-chromium/disable-logging-urls-to-stderr.patch
|
||||
ungoogled-chromium/change-trace-infobar-message.patch
|
||||
ungoogled-chromium/disable-copresence.patch
|
||||
|
||||
@@ -10,7 +10,7 @@ Homepage: https://github.com/Eloston/ungoogled-chromium
|
||||
Build-Depends:
|
||||
# TODO: Should we depend on a specific version of clang or the system default?
|
||||
# clang (>= 3.5),
|
||||
clang-3.8,
|
||||
clang-3.9,
|
||||
debhelper (>= 9),
|
||||
python,
|
||||
pkg-config,
|
||||
|
||||
Reference in New Issue
Block a user