Skip to content

Instantly share code, notes, and snippets.

View darktears's full-sized avatar

Alexis Menard darktears

View GitHub Profile
std::wstring wer_module = client.GetWerRuntimeExceptionModule();
ASSERT_FALSE(wer_module.empty());
base::FilePath as_file_path(wer_module);
ASSERT_EQ(as_file_path.Extension(), FILE_PATH_LITERAL(".dll"));
@darktears
darktears / patch.diff
Created February 28, 2024 20:59
test
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
diff --git a/third_party/blink/renderer/core/frame/web_frame_widget_impl.cc b/third_party/blink/renderer/core/frame/web_frame_widget_impl.cc
index 41112a5924b54..9487347fe23ce 100644
--- a/third_party/blink/renderer/core/frame/web_frame_widget_impl.cc
+++ b/third_party/blink/renderer/core/frame/web_frame_widget_impl.cc
@@ -1968,6 +1968,13 @@ void WebFrameWidgetImpl::SetBrowserControlsShownRatio(float top_ratio,
void WebFrameWidgetImpl::SetBrowserControlsParams(
cc::BrowserControlsParams params) {
widget_base_->LayerTreeHost()->SetBrowserControlsParams(params);
+ WebVector<gfx::Rect> old_window_segments =
+ window_segments_with_browser_controls_;
@darktears
darktears / patch.diff
Created February 1, 2024 23:27
patch.diff
diff --git a/content/public/android/java/src/org/chromium/content/browser/device_posture/DevicePosturePlatformProviderAndroid.java b/content/public/android/java/src/org/chromium/content/browser/device_posture/DevicePosturePlatformProviderAndroid.java
index 08f4365d19515..44b2cb71a6c65 100644
--- a/content/public/android/java/src/org/chromium/content/browser/device_posture/DevicePosturePlatformProviderAndroid.java
+++ b/content/public/android/java/src/org/chromium/content/browser/device_posture/DevicePosturePlatformProviderAndroid.java
@@ -110,12 +110,16 @@ public class DevicePosturePlatformProviderAndroid implements WindowEventObserver
}
public void onWindowLayoutInfoChanged(WindowLayoutInfo windowLayoutInfo) {
- if (mNativeDevicePosturePlatformProvider != 0) {
- DevicePosturePlatformProviderAndroidJni.get()
01-31 21:06:01.184 7347 7347 E AndroidRuntime: FATAL EXCEPTION: main
01-31 21:06:01.184 7347 7347 E AndroidRuntime: Process: org.chromium.chrome, PID: 7347
01-31 21:06:01.184 7347 7347 E AndroidRuntime: org.chromium.base.JniAndroid$UncaughtExceptionException: Native stack trace:
01-31 21:06:01.184 7347 7347 E AndroidRuntime:
01-31 21:06:01.184 7347 7347 E AndroidRuntime: Stack Trace:
01-31 21:06:01.184 7347 7347 E AndroidRuntime: RELADDR FUNCTION FILE:LINE
01-31 21:06:01.184 7347 7347 E AndroidRuntime: 00000000005d207b base::debug::StackTrace::StackTrace(unsigned long) ../../base/debug/stack_trace.cc:221:12
01-31 21:06:01.184 7347 7347 E AndroidRuntime: 00000000005c32f7 base::android::CheckException(_JNIEnv*) ../../base/android/jni_android.cc:187:42
01-31 21:06:01.184 7347 7347 E AndroidRuntime: 0000000001b2d25f jni_zero::JniJavaCallC
@darktears
darktears / patch.diff
Created January 11, 2024 14:25
patch.diff
diff --git a/services/device/device_posture/android/java/src/org/chromium/device/device_posture/DevicePosturePlatformProviderAndroid.java b/services/device/device_posture/android/java/src/org/chromium/device/device_posture/DevicePosturePlatformProviderAndroid.java
index 1126bf4b0b3b6..7df3f5be58e74 100644
--- a/services/device/device_posture/android/java/src/org/chromium/device/device_posture/DevicePosturePlatformProviderAndroid.java
+++ b/services/device/device_posture/android/java/src/org/chromium/device/device_posture/DevicePosturePlatformProviderAndroid.java
@@ -6,7 +6,6 @@ package org.chromium.device.device_posture;
import android.content.Context;
-import androidx.annotation.Nullable;
import androidx.window.extensions.layout.DisplayFeature;
@darktears
darktears / patch.diff
Last active January 2, 2024 20:20
patch.diff
commit 536143e1f8e1cf19e5c907b507d195fff4648e47
Author: Menard, Alexis <alexis.menard@intel.com>
Date: Tue Dec 19 12:22:27 2023 -0500
WIP backend on Android
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
index a60998273a362..08f354a9674d4 100644
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn
diff --git a/ui/android/BUILD.gn b/ui/android/BUILD.gn
index e563c3b1a3703..0b4fea8228c32 100644
--- a/ui/android/BUILD.gn
+++ b/ui/android/BUILD.gn
@@ -442,6 +442,10 @@ android_library("ui_no_recycler_view_java") {
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_interpolator_interpolator_java",
"//third_party/androidx:androidx_vectordrawable_vectordrawable_animated_java",
+ "//third_party/androidx:androidx_window_extensions_extensions_java",
+ "//third_party/androidx:androidx_window_sidecar_sidecar_java",
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
index 16b161ca8e6a7..7e176968cd86e 100644
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn
@@ -607,6 +607,7 @@ if (current_toolchain == default_toolchain) {
"//mojo/public/mojom/base:base_java",
"//net/android:net_java",
"//services/data_decoder/public/cpp/android:safe_json_java",
+ "//services/device/device_posture/android:device_posture_java",
"//services/device/public/java:device_feature_list_java",
[0/1] Regenerating ninja files
ERROR Unresolved dependencies.
//chrome/android:chrome_java(//build/toolchain/android:android_clang_arm64)
needs //third_party/androidx:androidx_window_window_java(//build/toolchain/android:android_clang_arm64)
//chrome/android:chrome_java__assetres(//build/toolchain/android:android_clang_arm64)
needs //third_party/androidx:androidx_window_window_java__assetres(//build/toolchain/android:android_clang_arm64)
//chrome/android:chrome_java__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
needs //third_party/androidx:androidx_window_window_java__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
//chrome/android:chrome_java__compile_java(//build/toolchain/android:android_clang_arm64)
needs //third_party/androidx:androidx_window_window_java__header(//build/toolchain/android:android_clang_arm64)