Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,250 additions
and
1,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From: Daniel Micay <danielmicay@gmail.com> | ||
Date: Wed, 23 Nov 2016 09:26:51 -0500 | ||
Subject: Disable contextual search by default | ||
|
||
--- | ||
chrome/browser/profiles/profile.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc | ||
--- a/chrome/browser/profiles/profile.cc | ||
+++ b/chrome/browser/profiles/profile.cc | ||
@@ -143,7 +143,7 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | ||
#if defined(OS_ANDROID) | ||
registry->RegisterStringPref( | ||
prefs::kContextualSearchEnabled, | ||
- std::string(), | ||
+ "false", | ||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | ||
#endif // defined(OS_ANDROID) | ||
registry->RegisterBooleanPref(prefs::kSessionExitedCleanly, true); | ||
-- | ||
2.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From: Daniel Micay <danielmicay@gmail.com> | ||
Date: Sat, 26 Nov 2016 14:57:22 -0500 | ||
Subject: Disable hyperlink auditing by default | ||
|
||
--- | ||
chrome/browser/about_flags.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc | ||
--- a/chrome/browser/about_flags.cc | ||
+++ b/chrome/browser/about_flags.cc | ||
@@ -1505,7 +1505,7 @@ const FeatureEntry kFeatureEntries[] = { | ||
SINGLE_VALUE_TYPE(switches::kDisablePushStateThrottle)}, | ||
{"disable-hyperlink-auditing", flag_descriptions::kHyperlinkAuditingName, | ||
flag_descriptions::kHyperlinkAuditingDescription, kOsAll, | ||
- SINGLE_DISABLE_VALUE_TYPE(switches::kNoPings)}, | ||
+ SINGLE_VALUE_TYPE(switches::kNoPings)}, | ||
#if defined(OS_ANDROID) | ||
{"contextual-search", flag_descriptions::kContextualSearchName, | ||
flag_descriptions::kContextualSearchDescription, kOsAndroid, | ||
-- | ||
2.11.0 | ||
|
25 changes: 25 additions & 0 deletions
25
build/patches/Enable-fwrapv-in-Clang-for-non-UBSan-builds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From: Daniel Micay <danielmicay@gmail.com> | ||
Date: Thu, 22 Dec 2016 07:15:34 -0500 | ||
Subject: Enable -fwrapv in Clang for non-UBSan builds | ||
|
||
--- | ||
build/config/compiler/BUILD.gn | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn | ||
--- a/build/config/compiler/BUILD.gn | ||
+++ b/build/config/compiler/BUILD.gn | ||
@@ -267,6 +267,10 @@ config("compiler") { | ||
} | ||
} | ||
|
||
+ if (is_clang && !is_ubsan && !is_ubsan_security) { | ||
+ cflags += [ "-fwrapv" ] | ||
+ } | ||
+ | ||
# Linker warnings. | ||
if (fatal_linker_warnings && !(is_chromeos && current_cpu == "arm") && | ||
!(is_android && use_order_profiling) && !is_mac && !is_ios && | ||
-- | ||
2.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From: Daniel Micay <danielmicay@gmail.com> | ||
Date: Sun, 13 Aug 2017 19:33:04 -0400 | ||
Subject: Hide passwords manager link | ||
|
||
--- | ||
.../chrome/browser/preferences/password/SavePasswordsPreferences.java | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/SavePasswordsPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/SavePasswordsPreferences.java | ||
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/SavePasswordsPreferences.java | ||
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/password/SavePasswordsPreferences.java | ||
@@ -252,7 +252,7 @@ public class SavePasswordsPreferences | ||
return; | ||
} | ||
|
||
- displayManageAccountLink(); | ||
+ //displayManageAccountLink(); | ||
|
||
PreferenceGroup passwordParent; | ||
if (mSearchQuery == null) { | ||
@@ -327,7 +327,7 @@ public class SavePasswordsPreferences | ||
return; | ||
} | ||
|
||
- displayManageAccountLink(); | ||
+ //displayManageAccountLink(); | ||
|
||
PreferenceCategory profileCategory = new PreferenceCategory(getActivity()); | ||
profileCategory.setKey(PREF_KEY_CATEGORY_EXCEPTIONS); | ||
-- | ||
2.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From: Daniel Micay <danielmicay@gmail.com> | ||
Date: Wed, 26 Dec 2018 10:20:24 -0500 | ||
Subject: Switch to -fstack-protector-strong | ||
|
||
--- | ||
build/config/compiler/BUILD.gn | 6 +----- | ||
1 file changed, 1 insertion(+), 5 deletions(-) | ||
|
||
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn | ||
--- a/build/config/compiler/BUILD.gn | ||
+++ b/build/config/compiler/BUILD.gn | ||
@@ -258,16 +258,12 @@ config("compiler") { | ||
cflags += [ "-fstack-protector" ] | ||
} | ||
} else if ((is_posix && !is_chromeos && !is_nacl) || is_fuchsia) { | ||
- # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc supports it. | ||
- # See also https://crbug.com/533294 | ||
- cflags += [ "--param=ssp-buffer-size=4" ] | ||
- | ||
# The x86 toolchain currently has problems with stack-protector. | ||
if (is_android && current_cpu == "x86") { | ||
cflags += [ "-fno-stack-protector" ] | ||
} else if (current_os != "aix") { | ||
# Not available on aix. | ||
- cflags += [ "-fstack-protector" ] | ||
+ cflags += [ "-fstack-protector-strong" ] | ||
} | ||
} | ||
|
||
-- | ||
2.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters