Bug 1897317 - Rename MOZ_ANDROID_HISTORY to MOZ_GECKOVIEW_HISTORY. r=firefox-build-system-reviewers,geckoview-reviewers,nalexander,owlish

Differential Revision: https://phabricator.services.mozilla.com/D210743
This commit is contained in:
Mike Hommey 2024-05-17 00:29:35 +00:00
parent b2b99f4e80
commit 0166b77500
10 changed files with 20 additions and 20 deletions

View file

@ -147,7 +147,7 @@
# include "mozilla/a11y/nsWinUtils.h"
#endif
#ifdef MOZ_ANDROID_HISTORY
#ifdef MOZ_GECKOVIEW_HISTORY
# include "GeckoViewHistory.h"
#endif
@ -3947,7 +3947,7 @@ mozilla::ipc::IPCResult BrowserParent::RecvVisitURI(
mozilla::ipc::IPCResult BrowserParent::RecvQueryVisitedState(
nsTArray<RefPtr<nsIURI>>&& aURIs) {
#ifdef MOZ_ANDROID_HISTORY
#ifdef MOZ_GECKOVIEW_HISTORY
nsCOMPtr<IHistory> history = components::History::Service();
if (NS_WARN_IF(!history)) {
return IPC_OK();

View file

@ -128,7 +128,7 @@ PushRecord.prototype = {
return Date.now();
}
if (AppConstants.MOZ_ANDROID_HISTORY) {
if (AppConstants.MOZ_GECKOVIEW_HISTORY) {
let result = await lazy.EventDispatcher.instance.sendRequestForResult({
type: "History:GetPrePathLastVisitedTimeMilliseconds",
prePath: this.uri.prePath,

View file

@ -59,7 +59,7 @@ set_config("MOZ_ANDROID_GECKOVIEW_LITE", True, when="--enable-geckoview-lite")
imply_option("MOZ_NORMANDY", False)
imply_option("MOZ_SERVICES_HEALTHREPORT", True)
imply_option("MOZ_ANDROID_HISTORY", True)
imply_option("MOZ_GECKOVIEW_HISTORY", True)
@depends(target)

View file

@ -75,7 +75,7 @@ Classes = [
},
]
if defined('MOZ_ANDROID_HISTORY'):
if defined('MOZ_GECKOVIEW_HISTORY'):
Classes += [
{
'name': 'History',

View file

@ -4,7 +4,7 @@
# 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/.
if CONFIG["MOZ_ANDROID_HISTORY"]:
if CONFIG["MOZ_GECKOVIEW_HISTORY"]:
EXPORTS += [
"GeckoViewHistory.h",
]

View file

@ -49,7 +49,7 @@
"MOZILLA_OFFICIAL": false,
"MOZ_ALLOW_ADDON_SIDELOAD": false,
"MOZ_ALLOW_LEGACY_EXTENSIONS": false,
"MOZ_ANDROID_HISTORY": false,
"MOZ_GECKOVIEW_HISTORY": false,
"MOZ_APP_BASENAME": "Firefox",
"MOZ_APP_NAME": "firefox",
"MOZ_APP_VERSION": "81.0a1",
@ -118,7 +118,7 @@
"MOZILLA_OFFICIAL": false,
"MOZ_ALLOW_ADDON_SIDELOAD": false,
"MOZ_ALLOW_LEGACY_EXTENSIONS": false,
"MOZ_ANDROID_HISTORY": false,
"MOZ_GECKOVIEW_HISTORY": false,
"MOZ_APP_BASENAME": "Firefox",
"MOZ_APP_NAME": "firefox",
"MOZ_APP_VERSION": "81.0a1",

File diff suppressed because one or more lines are too long

View file

@ -327,8 +327,8 @@ export var AppConstants = Object.freeze({
false,
#endif
MOZ_ANDROID_HISTORY:
#ifdef MOZ_ANDROID_HISTORY
MOZ_GECKOVIEW_HISTORY:
#ifdef MOZ_GECKOVIEW_HISTORY
true,
#else
false,

View file

@ -970,8 +970,8 @@ project_flag(
project_flag("MOZ_SERVICES_SYNC", help="Build Sync Services if required")
project_flag(
"MOZ_ANDROID_HISTORY",
help="Enable Android History instead of Places",
"MOZ_GECKOVIEW_HISTORY",
help="Enable Geckoview History instead of Places",
set_as_define=True,
)
@ -1001,12 +1001,12 @@ project_flag(
)
@depends("MOZ_PLACES", "MOZ_ANDROID_HISTORY")
def check_places_and_android_history(places, android_history):
if places and android_history:
die("Cannot use MOZ_ANDROID_HISTORY alongside MOZ_PLACES.")
if not places and not android_history:
die("One of MOZ_ANDROID_HISTORY or MOZ_PLACES must be set.")
@depends("MOZ_PLACES", "MOZ_GECKOVIEW_HISTORY")
def check_places_and_geckoview_history(places, geckoview_history):
if places and geckoview_history:
die("Cannot use MOZ_GECKOVIEW_HISTORY alongside MOZ_PLACES.")
if not places and not geckoview_history:
die("One of MOZ_GECKOVIEW_HISTORY or MOZ_PLACES must be set.")
option(

View file

@ -53,7 +53,7 @@
#include <pthread.h>
#include <wchar.h>
#ifdef MOZ_ANDROID_HISTORY
#ifdef MOZ_GECKOVIEW_HISTORY
# include "nsNetUtil.h"
# include "nsIURI.h"
# include "IHistory.h"