-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use overriding technique to updater_state_win.cc
- Loading branch information
Showing
2 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
chromium_src/components/update_client/updater_state_win.cc
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 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
namespace update_client { | ||
|
||
namespace { | ||
|
||
const int kCheckPeriodOverrideMinutesMax = 60 * 24 * 7 * 6; | ||
const wchar_t kGoogleUpdatePoliciesKey[] = | ||
L"SOFTWARE\\Policies\\BraveSoftware\\Update"; | ||
const wchar_t kCheckPeriodOverrideMinutes[] = L"AutoUpdateCheckPeriodMinutes"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
const wchar_t kUpdatePolicyValue[] = L"UpdateDefault"; | ||
const wchar_t kChromeUpdatePolicyOverride[] = | ||
L"Update{AFE6A462-C574-4B8A-AF43-4CC60DF4563B}"; | ||
const wchar_t kRegPathGoogleUpdate[] = L"Software\\BraveSoftware\\Update"; | ||
const wchar_t kRegPathClientsGoogleUpdate[] = | ||
L"Software\\BraveSoftware\\Update\\Clients\\" | ||
L"{B131C935-9BE6-41DA-9599-1F776BEB8019}"; | ||
|
||
} // namespace | ||
|
||
} // namespace update_client | ||
|
||
#include "../../../../components/update_client/updater_state_win.cc" |
23 changes: 6 additions & 17 deletions
23
patches/components-update_client-updater_state_win.cc.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
we only want values here that we are overriding