32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
From: Your Name <you@example.com>
|
|
Date: Thu, 5 Jan 2023 11:30:19 +0000
|
|
Subject: 109 ADDTO User agent customization
|
|
|
|
---
|
|
.../android/preferences/privacy_preferences_manager_impl.cc | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/chrome/browser/android/preferences/privacy_preferences_manager_impl.cc b/chrome/browser/android/preferences/privacy_preferences_manager_impl.cc
|
|
--- a/chrome/browser/android/preferences/privacy_preferences_manager_impl.cc
|
|
+++ b/chrome/browser/android/preferences/privacy_preferences_manager_impl.cc
|
|
@@ -17,6 +17,7 @@
|
|
#include "base/command_line.h"
|
|
#include "base/base_switches.h"
|
|
#include "chrome/common/chrome_switches.h"
|
|
+#include "content/browser/attribution_reporting/attribution_manager.h"
|
|
#include "content/browser/renderer_host/render_process_host_impl.h"
|
|
#include "content/common/renderer.mojom.h"
|
|
#include "chrome/browser/chrome_content_browser_client.h"
|
|
@@ -88,7 +89,8 @@ static void UpdateOverrideUserAgent() {
|
|
std::vector<std::string> cors_exempt_header_list;
|
|
iter.GetCurrentValue()->GetRendererInterface()->InitializeRenderer(
|
|
/*user_agent*/ ua, /*full_user_agent*/ ua, /*reduced_user_agent*/ ua,
|
|
- /*metadata*/ blink::UserAgentMetadata(), cors_exempt_header_list);
|
|
+ /*metadata*/ blink::UserAgentMetadata(), cors_exempt_header_list,
|
|
+ content::AttributionManager::GetOsSupport());
|
|
}
|
|
}
|
|
}
|
|
--
|
|
2.25.1
|