Skip to content

Commit 5c384ff

Browse files
committed
49.0.2623.111-1
Update disable-domain-reliability.patch to fix build error Update fix-building-without-safebrowsing.patch to fix linking error Change build_debian.sh 'k' flag to 'R' Fix domain_patcher.sh sed command Separate quilt variables to quilt_variables.sh
1 parent 3580a48 commit 5c384ff

File tree

9 files changed

+82
-41
lines changed

9 files changed

+82
-41
lines changed

build_debian.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ CWD=$(pwd);
1010
SANDBOX_PATH="$SCRIPT_DIR/build-sandbox";
1111
DOWNLOAD_EXTRACT_TARBALL=;
1212
CUSTOM_TARBALL=;
13-
KEEP_TARBALL=;
13+
REMOVE_TARBALL=;
1414
RUN_SOURCE_CLEANER=;
1515
RUN_DOMAIN_PATCHER=;
1616
GENERATE_BUILD_SCRIPTS=;
1717
RUN_BUILD_COMMAND=;
1818

1919
print_usage() {
20-
echo "Usage: $0 [-h] {-A | [-d | -x tarball] [-k] [-c] [-p] [-g] [-b]}";
20+
echo "Usage: $0 [-h] {-A | [-d | -x tarball] [-R] [-c] [-p] [-g] [-b]}";
2121
echo "Options:";
2222
echo " -h: Show this help message";
2323
echo " -s: (Default: $SANDBOX_PATH) Path to to the building sandbox";
2424
echo " -A: Same as -d -c -p -g -b";
2525
echo " -d: Download the source tarball and extract it into the building sandbox. Cannot be used with -x";
2626
echo " -x: Extract the provided tarball into the building sandbox. Cannot be used with -d";
27-
echo " -k: Keep the tarball after source extraction. Otherwise it will be deleted. Requires -d or -x to be present";
27+
echo " -R: Remove the tarball after source extraction. Otherwise it will be kept. Requires -d or -x to be present";
2828
echo " -c: Run source_cleaner.sh on the source code";
2929
echo " -p: Run domain_patcher.sh on the source code";
3030
echo " -g: Generate Debian or Ubuntu build scripts (depending on lsb_release) and place them into the building sandbox, if they do not already exist";
@@ -82,7 +82,7 @@ while getopts ":hs:Adx:kcpgb" opt; do
8282
A)
8383
A_conflict="Argument -A cannot be used with any other argument except -s";
8484
set_or_fail "DOWNLOAD_EXTRACT_TARBALL" 1 "$A_conflict";
85-
set_or_fail "KEEP_TARBALL" 0 "$A_conflict";
85+
set_or_fail "REMOVE_TARBALL" 0 "$A_conflict";
8686
set_or_fail "RUN_SOURCE_CLEANER" 1 "$A_conflict";
8787
set_or_fail "RUN_DOMAIN_PATCHER" 1 "$A_conflict";
8888
set_or_fail "GENERATE_BUILD_SCRIPTS" 1 "$A_conflict";
@@ -97,8 +97,8 @@ while getopts ":hs:Adx:kcpgb" opt; do
9797
is_not_set "DOWNLOAD_EXTRACT_TARBALL" "Argument -x cannot be used with -d";
9898
CUSTOM_TARBALL=$OPTARG;
9999
;;
100-
k)
101-
KEEP_TARBALL=1;
100+
R)
101+
REMOVE_TARBALL=1;
102102
;;
103103
c)
104104
RUN_SOURCE_CLEANER=1;
@@ -126,7 +126,7 @@ while getopts ":hs:Adx:kcpgb" opt; do
126126
done
127127

128128
set_if_empty "DOWNLOAD_EXTRACT_TARBALL" 0
129-
set_if_empty "KEEP_TARBALL" 0
129+
set_if_empty "REMOVE_TARBALL" 0
130130
set_if_empty "RUN_SOURCE_CLEANER" 0
131131
set_if_empty "RUN_DOMAIN_PATCHER" 0
132132
set_if_empty "GENERATE_BUILD_SCRIPTS" 0
@@ -140,10 +140,10 @@ if [[ $DOWNLOAD_EXTRACT_TARBALL -eq 1 ]]; then
140140
mkdir $SANDBOX_PATH;
141141
fi
142142
echo "Downloading and extracting tarball...";
143-
if [[ $KEEP_TARBALL -eq 1 ]]; then
144-
$SCRIPT_DIR/download_source.sh -x "$SANDBOX_PATH"
145-
else
143+
if [[ $REMOVE_TARBALL -eq 1 ]]; then
146144
$SCRIPT_DIR/download_source.sh -x "$SANDBOX_PATH" -R
145+
else
146+
$SCRIPT_DIR/download_source.sh -x "$SANDBOX_PATH"
147147
fi
148148
fi
149149

@@ -164,7 +164,7 @@ if [[ -n "$CUSTOM_TARBALL" ]]; then
164164
cd "$SANDBOX_PATH";
165165
tar -xf "$CUSTOM_TARBALL" --strip-components=1;
166166
cd "$CWD";
167-
if [[ $KEEP_TARBALL -eq 0 ]]; then
167+
if [[ $REMOVE_TARBALL -eq 1 ]]; then
168168
rm $CUSTOM_TARBALL;
169169
fi
170170
fi

build_templates/debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
chromium-browser (49.0.2623.108-1) stretch; urgency=low
1+
chromium-browser (49.0.2623.111-1) stretch; urgency=low
22

33
* New upstream version
44

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
22

3-
export QUILT_PATCHES=debian/patches
4-
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
3+
source "$(dirname $(readlink -f $0))/quilt_variables.sh"
54
quilt push -a
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export QUILT_PATCHES=debian/patches
4+
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
22

3-
export QUILT_PATCHES=debian/patches
4-
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
3+
source "$(dirname $(readlink -f $0))/quilt_variables.sh"
54
quilt pop -a

build_templates/ubuntu/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
chromium-browser (49.0.2623.108-1) wily; urgency=low
1+
chromium-browser (49.0.2623.111-1) wily; urgency=low
22

33
* New upstream version
44

domain_patcher.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ find . -path ./debian -prune \
3737
-e 's/gmail([A-Za-z\-]*)\.com/9ma1l\1\.qjz9zk/g' \
3838
-e 's/doubleclick([A-Za-z\-]*)\.net/60u613cl1c4\1\.qjz9zk/g' \
3939
-e 's/googlezip\.net/9oo91e21p\.qjz9zk/g' \
40-
-e 's/beacon[1-9]\.gvt[1-9]\.com/b3ac0n\1\.9vt\2\.qjz9zk/g' \
40+
-e 's/beacons([1-9]?)\.gvt([1-9]?)\.com/b3ac0n2\1\.9vt\2\.qjz9zk/g' \
4141
-e 's/microsoft\.com/m1cr050ft\.qjz9zk/g' {}
4242

4343
exit 0;

patches/ungoogled-chromium/disable-domain-reliability.patch

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,50 @@
2929
}
3030
--- a/components/domain_reliability/google_configs.cc
3131
+++ b/components/domain_reliability/google_configs.cc
32-
@@ -30,6 +30,7 @@ struct GoogleConfigParams {
32+
@@ -28,7 +28,7 @@ struct GoogleConfigParams {
33+
// www subdomain as the origin for the collector so it matches the config.
34+
bool duplicate_for_www;
3335
};
34-
35-
const GoogleConfigParams kGoogleConfigs[] = {
36+
-
3637
+#if 0
38+
const GoogleConfigParams kGoogleConfigs[] = {
3739
// Origins with subdomains and same-origin collectors.
3840
{ "google.ac", true, true, true },
39-
{ "google.ad", true, true, true },
40-
@@ -485,9 +486,11 @@ const GoogleConfigParams kGoogleConfigs[] = {
41-
{ "ad.60u613cl1c4.qjz9zk", false, false, false },
42-
{ "drive.9oo91e.qjz9zk", false, false, false },
43-
{ "redirector.9oo91evideo.qjz9zk", false, false, false },
44-
+#endif
45-
};
41+
@@ -499,7 +499,7 @@ const char* kGoogleStandardCollectors[] = {
4642

47-
const char* kGoogleStandardCollectors[] = {
48-
+#if 0
49-
"https://beacons.gvt2.com/domainreliability/upload",
50-
"https://beacons2.gvt2.com/domainreliability/upload",
51-
"https://beacons3.gvt2.com/domainreliability/upload",
52-
@@ -495,6 +498,7 @@ const char* kGoogleStandardCollectors[] = {
53-
"https://beacons5.gvt2.com/domainreliability/upload",
54-
"https://beacons5.gvt3.com/domainreliability/upload",
55-
"https://clients2.9oo91e.qjz9zk/domainreliability/upload",
43+
const char* kGoogleOriginSpecificCollectorPathString =
44+
"/domainreliability/upload";
45+
-
5646
+#endif
57-
};
47+
static scoped_ptr<DomainReliabilityConfig>
48+
CreateGoogleConfig(const GoogleConfigParams& params, bool is_www) {
49+
if (is_www)
50+
@@ -514,12 +514,9 @@ CreateGoogleConfig(const GoogleConfigParams& params, bool is_www) {
51+
config->collectors.clear();
52+
if (params.include_origin_specific_collector) {
53+
GURL::Replacements replacements;
54+
- replacements.SetPathStr(kGoogleOriginSpecificCollectorPathString);
55+
config->collectors.push_back(
56+
new GURL(config->origin.ReplaceComponents(replacements)));
57+
}
58+
- for (size_t i = 0; i < arraysize(kGoogleStandardCollectors); i++)
59+
- config->collectors.push_back(new GURL(kGoogleStandardCollectors[i]));
60+
config->success_sample_rate = 0.05;
61+
config->failure_sample_rate = 1.00;
62+
config->path_prefixes.clear();
63+
@@ -532,12 +529,6 @@ CreateGoogleConfig(const GoogleConfigParams& params, bool is_www) {
64+
void GetAllGoogleConfigs(
65+
std::vector<DomainReliabilityConfig*>* configs_out) {
66+
configs_out->clear();
67+
-
68+
- for (auto& params : kGoogleConfigs) {
69+
- configs_out->push_back(CreateGoogleConfig(params, false).release());
70+
- if (params.duplicate_for_www)
71+
- configs_out->push_back(CreateGoogleConfig(params, true).release());
72+
- }
73+
}
5874

59-
const char* kGoogleOriginSpecificCollectorPathString =
75+
} // namespace domain_reliability
6076
--- a/components/domain_reliability/uploader.cc
6177
+++ b/components/domain_reliability/uploader.cc
6278
@@ -75,7 +75,7 @@ class DomainReliabilityUploaderImpl

patches/ungoogled-chromium/fix-building-without-safebrowsing.patch

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,19 +428,42 @@
428428
// whether an update is available, and if that's the case, restart the
429429
--- a/chrome/browser/download/download_danger_prompt.cc
430430
+++ b/chrome/browser/download/download_danger_prompt.cc
431-
@@ -316,6 +316,7 @@ DownloadDangerPrompt* DownloadDangerPrompt::Create(
431+
@@ -28,10 +28,6 @@
432+
#include "ui/base/l10n/l10n_util.h"
433+
434+
using extensions::ExperienceSamplingEvent;
435+
-using safe_browsing::ClientDownloadResponse;
436+
-using safe_browsing::ClientSafeBrowsingReportRequest;
437+
-using safe_browsing::download_protection_util::
438+
- GetSBClientDownloadExtensionValueForUMA;
439+
440+
namespace {
441+
442+
@@ -316,6 +312,7 @@ DownloadDangerPrompt* DownloadDangerPrompt::Create(
432443
void DownloadDangerPrompt::SendSafeBrowsingDownloadRecoveryReport(
433444
bool did_proceed,
434445
const content::DownloadItem& download) {
435446
+#if 0
436447
safe_browsing::SafeBrowsingService* sb_service =
437448
g_browser_process->safe_browsing_service();
438449
ClientSafeBrowsingReportRequest report;
439-
@@ -345,6 +346,7 @@ void DownloadDangerPrompt::SendSafeBrowsingDownloadRecoveryReport(
450+
@@ -345,11 +342,13 @@ void DownloadDangerPrompt::SendSafeBrowsingDownloadRecoveryReport(
440451
sb_service->SendDownloadRecoveryReport(serialized_report);
441452
else
442453
DLOG(ERROR) << "Unable to serialize the threat report.";
443454
+#endif
444455
}
445456

446457
void DownloadDangerPrompt::RecordDownloadDangerPrompt(
458+
bool did_proceed,
459+
const content::DownloadItem& download) {
460+
+#if 0
461+
int dangerous_file_type =
462+
GetSBClientDownloadExtensionValueForUMA(download.GetTargetFilePath());
463+
content::DownloadDangerType danger_type = download.GetDangerType();
464+
@@ -364,4 +363,5 @@ void DownloadDangerPrompt::RecordDownloadDangerPrompt(
465+
GetDangerTypeString(danger_type)),
466+
dangerous_file_type);
467+
}
468+
+#endif
469+
}

0 commit comments

Comments
 (0)