mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 126.0.6478.0 (#1300313)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
diff --git chrome/browser/policy/browser_dm_token_storage_linux.cc chrome/browser/policy/browser_dm_token_storage_linux.cc
|
||||
index 9fef3079833f4..43576d91d53f1 100644
|
||||
index 02c801eb35549..2fa2e336a8cf7 100644
|
||||
--- chrome/browser/policy/browser_dm_token_storage_linux.cc
|
||||
+++ chrome/browser/policy/browser_dm_token_storage_linux.cc
|
||||
@@ -22,6 +22,7 @@
|
||||
@ -8,9 +8,9 @@ index 9fef3079833f4..43576d91d53f1 100644
|
||||
#include "base/threading/scoped_blocking_call.h"
|
||||
+#include "chrome/browser/policy/chrome_browser_policy_connector.h"
|
||||
#include "chrome/common/chrome_paths.h"
|
||||
#include "components/policy/core/common/policy_logger.h"
|
||||
|
||||
namespace policy {
|
||||
@@ -116,8 +117,8 @@ std::string BrowserDMTokenStorageLinux::InitEnrollmentToken() {
|
||||
@@ -121,8 +122,8 @@ std::string BrowserDMTokenStorageLinux::InitEnrollmentToken() {
|
||||
std::string enrollment_token;
|
||||
base::FilePath dir_policy_files_path;
|
||||
|
||||
@ -21,7 +21,7 @@ index 9fef3079833f4..43576d91d53f1 100644
|
||||
return std::string();
|
||||
}
|
||||
|
||||
@@ -147,8 +148,8 @@ bool BrowserDMTokenStorageLinux::InitEnrollmentErrorOption() {
|
||||
@@ -152,8 +153,8 @@ bool BrowserDMTokenStorageLinux::InitEnrollmentErrorOption() {
|
||||
std::string options;
|
||||
base::FilePath dir_policy_files_path;
|
||||
|
||||
@ -33,7 +33,7 @@ index 9fef3079833f4..43576d91d53f1 100644
|
||||
}
|
||||
|
||||
diff --git chrome/browser/policy/browser_dm_token_storage_mac.mm chrome/browser/policy/browser_dm_token_storage_mac.mm
|
||||
index 27af6ec08f593..156689eec644d 100644
|
||||
index d8fda08453256..466718e824503 100644
|
||||
--- chrome/browser/policy/browser_dm_token_storage_mac.mm
|
||||
+++ chrome/browser/policy/browser_dm_token_storage_mac.mm
|
||||
@@ -27,6 +27,7 @@
|
||||
@ -42,9 +42,9 @@ index 27af6ec08f593..156689eec644d 100644
|
||||
#include "base/threading/scoped_blocking_call.h"
|
||||
+#include "chrome/browser/policy/chrome_browser_policy_connector.h"
|
||||
#include "chrome/common/chrome_paths.h"
|
||||
#include "components/policy/core/common/policy_logger.h"
|
||||
|
||||
namespace policy {
|
||||
@@ -47,11 +48,6 @@ const char kEnrollmentOptionsFilePath[] = FILE_PATH_LITERAL(
|
||||
@@ -48,11 +49,6 @@ const char kEnrollmentOptionsFilePath[] = FILE_PATH_LITERAL(
|
||||
"/Library/Google/Chrome/CloudManagementEnrollmentOptions");
|
||||
const char kEnrollmentMandatoryOption[] = "Mandatory";
|
||||
|
||||
@ -56,7 +56,7 @@ index 27af6ec08f593..156689eec644d 100644
|
||||
constexpr char kEnrollmentTokenMetricsName[] =
|
||||
"Enterprise.CloudManagementEnrollmentTokenLocation.Mac";
|
||||
|
||||
@@ -104,16 +100,23 @@ bool DeleteDMTokenFromAppDataDir(const std::string& client_id) {
|
||||
@@ -109,16 +105,23 @@ bool DeleteDMTokenFromAppDataDir(const std::string& client_id) {
|
||||
// Get the enrollment token from policy file: /Library/com.google.Chrome.plist.
|
||||
// Return true if policy is set, otherwise false.
|
||||
bool GetEnrollmentTokenFromPolicy(std::string* enrollment_token) {
|
||||
@ -82,7 +82,7 @@ index 27af6ec08f593..156689eec644d 100644
|
||||
return false;
|
||||
}
|
||||
CFStringRef value_string = base::apple::CFCast<CFStringRef>(value.get());
|
||||
@@ -138,12 +141,19 @@ bool GetEnrollmentTokenFromFile(std::string* enrollment_token) {
|
||||
@@ -143,12 +146,19 @@ bool GetEnrollmentTokenFromFile(std::string* enrollment_token) {
|
||||
}
|
||||
|
||||
std::optional<bool> IsEnrollmentMandatoryByPolicy() {
|
||||
@ -254,7 +254,7 @@ index 50f1b5313ce45..687e667e4b942 100644
|
||||
// If the folder containing the policy files doesn't exist, there's no need
|
||||
// to have a provider for them. Note that in verified boot, the folder
|
||||
diff --git chrome/browser/policy/chrome_browser_policy_connector.h chrome/browser/policy/chrome_browser_policy_connector.h
|
||||
index 7d08b9b3a548e..c1acd530587a3 100644
|
||||
index 8f90fe72995f3..4d818e1cc61c7 100644
|
||||
--- chrome/browser/policy/chrome_browser_policy_connector.h
|
||||
+++ chrome/browser/policy/chrome_browser_policy_connector.h
|
||||
@@ -28,6 +28,10 @@
|
||||
@ -357,7 +357,7 @@ index 8dbf958c189dd..6eaccc6688eca 100644
|
||||
*dir = base::FilePath(policy::path_parser::ExpandPathVariables(value));
|
||||
return true;
|
||||
diff --git chrome/common/chrome_paths.cc chrome/common/chrome_paths.cc
|
||||
index c94a25e390864..b47996eaeb902 100644
|
||||
index 3c569bc610124..4f438a3d1f857 100644
|
||||
--- chrome/common/chrome_paths.cc
|
||||
+++ chrome/common/chrome_paths.cc
|
||||
@@ -541,7 +541,8 @@ bool PathProvider(int key, base::FilePath* result) {
|
||||
@ -371,7 +371,7 @@ index c94a25e390864..b47996eaeb902 100644
|
||||
cur = base::FilePath(policy::kPolicyPath);
|
||||
break;
|
||||
diff --git chrome/common/chrome_paths.h chrome/common/chrome_paths.h
|
||||
index 4cde94111918e..aaf8245abd9a6 100644
|
||||
index 13abfd26b92b3..acb4d58f02650 100644
|
||||
--- chrome/common/chrome_paths.h
|
||||
+++ chrome/common/chrome_paths.h
|
||||
@@ -8,6 +8,7 @@
|
||||
@ -392,10 +392,10 @@ index 4cde94111918e..aaf8245abd9a6 100644
|
||||
// policy files that allow sys-admins
|
||||
// to set policies for chrome. This directory
|
||||
diff --git components/policy/tools/generate_policy_source.py components/policy/tools/generate_policy_source.py
|
||||
index aef54cfd633eb..a3760acb82ea5 100755
|
||||
index be1553785d5b5..2446e30bea57e 100755
|
||||
--- components/policy/tools/generate_policy_source.py
|
||||
+++ components/policy/tools/generate_policy_source.py
|
||||
@@ -449,6 +449,7 @@ def _WritePolicyConstantHeader(all_policies, policy_atomic_groups,
|
||||
@@ -465,6 +465,7 @@ def _WritePolicyConstantHeader(all_policies, policy_atomic_groups,
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
@ -403,7 +403,7 @@ index aef54cfd633eb..a3760acb82ea5 100755
|
||||
#include "components/policy/core/common/policy_details.h"
|
||||
#include "components/policy/core/common/policy_map.h"
|
||||
|
||||
@@ -471,9 +472,11 @@ struct SchemaData;
|
||||
@@ -487,9 +488,11 @@ struct SchemaData;
|
||||
''')
|
||||
|
||||
if target_platform == 'win':
|
||||
@ -417,7 +417,7 @@ index aef54cfd633eb..a3760acb82ea5 100755
|
||||
|
||||
f.write('''#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Sets default profile policies values for enterprise users.
|
||||
@@ -1116,7 +1119,8 @@ namespace policy {
|
||||
@@ -1130,7 +1133,8 @@ namespace policy {
|
||||
f.write('} // namespace\n\n')
|
||||
|
||||
if target_platform == 'win':
|
||||
@ -427,7 +427,7 @@ index aef54cfd633eb..a3760acb82ea5 100755
|
||||
'const wchar_t kRegistryChromePolicyKey[] = '
|
||||
'L"' + CHROME_POLICY_KEY + '";\n'
|
||||
'#elif BUILDFLAG(GOOGLE_CHROME_FOR_TESTING_BRANDING)\n'
|
||||
@@ -1125,6 +1129,7 @@ namespace policy {
|
||||
@@ -1139,6 +1143,7 @@ namespace policy {
|
||||
'#else\n'
|
||||
'const wchar_t kRegistryChromePolicyKey[] = '
|
||||
'L"' + CHROMIUM_POLICY_KEY + '";\n'
|
||||
|
Reference in New Issue
Block a user