summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-03-11 13:43:56 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-03-16 14:44:30 +0000
commit8621069517b7accce2b2319ccfb5887dcae74d45 (patch)
tree3eb4e9d2602495a7d3ed501cd871f3ae0994dd91
parent1aeeb030e16f974827e4b6d01b4383c9ffb77df0 (diff)
downloadqtwebengine-chromium-8621069517b7accce2b2319ccfb5887dcae74d45.tar.gz
FIXUP: Fixes for jumbo build
Change-Id: Ib42dd310459fd4d6d2624b91fd0698947d51f977 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
-rw-r--r--chromium/content/browser/attribution_reporting/attribution_manager_impl.cc4
-rw-r--r--chromium/content/browser/attribution_reporting/attribution_storage_sql.cc34
-rw-r--r--chromium/third_party/blink/renderer/modules/peerconnection/BUILD.gn4
-rw-r--r--chromium/third_party/blink/renderer/modules/webcodecs/BUILD.gn5
4 files changed, 26 insertions, 21 deletions
diff --git a/chromium/content/browser/attribution_reporting/attribution_manager_impl.cc b/chromium/content/browser/attribution_reporting/attribution_manager_impl.cc
index 0aeb4867a0d..874924f1502 100644
--- a/chromium/content/browser/attribution_reporting/attribution_manager_impl.cc
+++ b/chromium/content/browser/attribution_reporting/attribution_manager_impl.cc
@@ -52,7 +52,7 @@ enum class ConversionReportSendOutcome {
// and recreated for the same backing storage. This uses
// BLOCK_SHUTDOWN as some data deletion operations may be running when the
// browser is closed, and we want to ensure all data is deleted correctly.
-base::LazyThreadPoolSequencedTaskRunner g_storage_task_runner =
+base::LazyThreadPoolSequencedTaskRunner g_storage_task_runner_attr =
LAZY_THREAD_POOL_SEQUENCED_TASK_RUNNER_INITIALIZER(
base::TaskTraits(base::TaskPriority::BEST_EFFORT,
base::MayBlock(),
@@ -162,7 +162,7 @@ AttributionManagerImpl::AttributionManagerImpl(
clock_(clock),
reporter_(std::move(reporter)),
attribution_storage_(base::SequenceBound<AttributionStorageSql>(
- g_storage_task_runner.Get(),
+ g_storage_task_runner_attr.Get(),
user_data_directory,
std::make_unique<AttributionStorageDelegateImpl>(debug_mode_),
clock_)),
diff --git a/chromium/content/browser/attribution_reporting/attribution_storage_sql.cc b/chromium/content/browser/attribution_reporting/attribution_storage_sql.cc
index 1aceb57209f..f2f941fe76b 100644
--- a/chromium/content/browser/attribution_reporting/attribution_storage_sql.cc
+++ b/chromium/content/browser/attribution_reporting/attribution_storage_sql.cc
@@ -42,9 +42,9 @@ using CreateReportStatus =
::content::AttributionStorage::CreateReportResult::Status;
using DeactivatedSource = ::content::AttributionStorage::DeactivatedSource;
-const base::FilePath::CharType kInMemoryPath[] = FILE_PATH_LITERAL(":memory");
+const base::FilePath::CharType kInMemoryPathAttr[] = FILE_PATH_LITERAL(":memory");
-const base::FilePath::CharType kDatabasePath[] =
+const base::FilePath::CharType kDatabasePathAttr[] =
FILE_PATH_LITERAL("Conversions");
// Version number of the database.
@@ -114,16 +114,16 @@ const base::FilePath::CharType kDatabasePath[] =
// Version 15 - 2021/11/13 - https://crrev.com/c/3180180
//
// Version 15 adds the conversions.external_report_id column.
-const int kCurrentVersionNumber = 15;
+const int kCurrentVersionNumberATTR = 15;
// Earliest version which can use a |kCurrentVersionNumber| database
// without failing.
-const int kCompatibleVersionNumber = 15;
+const int kCompatibleVersionNumberATTR = 15;
// Latest version of the database that cannot be upgraded to
// |kCurrentVersionNumber| without razing the database. No versions are
// currently deprecated.
-const int kDeprecatedVersionNumber = 0;
+const int kDeprecatedVersionNumberATTR = 0;
void RecordInitializationStatus(
const AttributionStorageSql::InitStatus status) {
@@ -278,8 +278,8 @@ AttributionStorageSql::AttributionStorageSql(
std::unique_ptr<Delegate> delegate,
const base::Clock* clock)
: path_to_database_(g_run_in_memory_
- ? base::FilePath(kInMemoryPath)
- : path_to_database.Append(kDatabasePath)),
+ ? base::FilePath(kInMemoryPathAttr)
+ : path_to_database.Append(kDatabasePathAttr)),
rate_limit_table_(delegate.get(), clock),
clock_(clock),
delegate_(std::move(delegate)),
@@ -1404,7 +1404,7 @@ bool AttributionStorageSql::LazyInit(DbCreationPolicy creation_policy) {
base::BindRepeating(&AttributionStorageSql::DatabaseErrorCallback,
weak_factory_.GetWeakPtr()));
- if (path_to_database_.value() == kInMemoryPath) {
+ if (path_to_database_.value() == kInMemoryPathAttr) {
if (!db_->OpenInMemory()) {
HandleInitializationFailure(InitStatus::kFailedToOpenDbInMemory);
return false;
@@ -1439,29 +1439,29 @@ bool AttributionStorageSql::InitializeSchema(bool db_empty) {
if (db_empty)
return CreateSchema();
- int current_version = kCurrentVersionNumber;
+ int current_version = kCurrentVersionNumberATTR;
if (!sql::MetaTable::DoesTableExist(db_.get())) {
// Version 1 of the schema did not have a metadata table.
current_version = 1;
- if (!meta_table_.Init(db_.get(), current_version, kCompatibleVersionNumber))
+ if (!meta_table_.Init(db_.get(), current_version, kCompatibleVersionNumberATTR))
return false;
} else {
- if (!meta_table_.Init(db_.get(), current_version, kCompatibleVersionNumber))
+ if (!meta_table_.Init(db_.get(), current_version, kCompatibleVersionNumberATTR))
return false;
current_version = meta_table_.GetVersionNumber();
}
- if (current_version == kCurrentVersionNumber)
+ if (current_version == kCurrentVersionNumberATTR)
return true;
- if (current_version <= kDeprecatedVersionNumber) {
+ if (current_version <= kDeprecatedVersionNumberATTR) {
// Note that this also razes the meta table, so it will need to be
// initialized again.
db_->Raze();
return CreateSchema();
}
- if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) {
+ if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumberATTR) {
// In this case the database version is too new to be used. The DB will
// never work until Chrome is re-upgraded. Assume the user will continue
// using this Chrome version and raze the DB to get attribution reporting
@@ -1616,8 +1616,8 @@ bool AttributionStorageSql::CreateSchema() {
if (!db_->Execute(kDedupKeyTableSql))
return false;
- if (!meta_table_.Init(db_.get(), kCurrentVersionNumber,
- kCompatibleVersionNumber)) {
+ if (!meta_table_.Init(db_.get(), kCurrentVersionNumberATTR,
+ kCompatibleVersionNumberATTR)) {
return false;
}
@@ -1631,7 +1631,7 @@ void AttributionStorageSql::DatabaseErrorCallback(int extended_error,
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// Attempt to recover a corrupt database, unless it is setup in memory.
if (sql::Recovery::ShouldRecover(extended_error) &&
- (path_to_database_.value() != kInMemoryPath)) {
+ (path_to_database_.value() != kInMemoryPathAttr)) {
// Prevent reentrant calls.
db_->reset_error_callback();
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/BUILD.gn b/chromium/third_party/blink/renderer/modules/peerconnection/BUILD.gn
index 9f50cbb58d7..1fbcd9fb4cb 100644
--- a/chromium/third_party/blink/renderer/modules/peerconnection/BUILD.gn
+++ b/chromium/third_party/blink/renderer/modules/peerconnection/BUILD.gn
@@ -147,7 +147,9 @@ blink_modules_sources("peerconnection") {
]
jumbo_excluded_sources = [
- "rtc_rtp_sender_impl.cc"
+ "peer_connection_tracker.cc",
+ "rtc_data_channel.cc",
+ "rtc_rtp_sender_impl.cc",
]
public_deps = [ "//third_party/webrtc_overrides:webrtc_component" ]
diff --git a/chromium/third_party/blink/renderer/modules/webcodecs/BUILD.gn b/chromium/third_party/blink/renderer/modules/webcodecs/BUILD.gn
index d81e6e1eebd..dece2b83799 100644
--- a/chromium/third_party/blink/renderer/modules/webcodecs/BUILD.gn
+++ b/chromium/third_party/blink/renderer/modules/webcodecs/BUILD.gn
@@ -80,7 +80,10 @@ blink_modules_sources("webcodecs") {
"webcodecs_logger.cc",
"webcodecs_logger.h",
]
- jumbo_excluded_sources = [ "video_decoder_broker.cc" ]
+ jumbo_excluded_sources = [
+ "video_decoder_broker.cc",
+ "video_encoder.cc",
+ ]
deps = [
"//build:os_buildflags",
"//media",