From 10ad3b3d94e3a79df4549a99e3e19416788b10e3 Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Tue, 14 Jan 2025 14:44:09 -0800 Subject: [PATCH] Add extra origin comments, remove cruft --- cobalt/android/shell_manager.cc | 2 ++ cobalt/android/shell_manager.h | 3 --- cobalt/android/shell_platform_delegate_android.cc | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cobalt/android/shell_manager.cc b/cobalt/android/shell_manager.cc index b812661a3aeb..1a7d3c8fcfc5 100644 --- a/cobalt/android/shell_manager.cc +++ b/cobalt/android/shell_manager.cc @@ -66,6 +66,8 @@ void JNI_ShellManager_LaunchShell(JNIEnv* env, content::ShellBrowserContext* browserContext = content::ShellContentBrowserClient::Get()->browser_context(); GURL url(base::android::ConvertJavaStringToUTF8(env, jurl)); + + // Cobalt specific shell creation cobalt::CobaltShell::CreateNewWindow(browserContext, url, nullptr, gfx::Size()); } diff --git a/cobalt/android/shell_manager.h b/cobalt/android/shell_manager.h index 2ce57b8c2960..c9366137d355 100644 --- a/cobalt/android/shell_manager.h +++ b/cobalt/android/shell_manager.h @@ -35,9 +35,6 @@ void RemoveShellView(const base::android::JavaRef& shell_view); } // namespace cobalt namespace content { -void ShellAttachLayer(cc::Layer* layer); -void ShellRemoveLayer(cc::Layer* layer); - // Destroys the ShellManager on app exit. Must not use the above functions // after this is called. void DestroyShellManager(); diff --git a/cobalt/android/shell_platform_delegate_android.cc b/cobalt/android/shell_platform_delegate_android.cc index f006124a907c..8adf24b99547 100644 --- a/cobalt/android/shell_platform_delegate_android.cc +++ b/cobalt/android/shell_platform_delegate_android.cc @@ -24,6 +24,9 @@ using base::android::ConvertUTF8ToJavaString; using base::android::JavaParamRef; using base::android::ScopedJavaLocalRef; +// Note: Origin of this file is +// content/shell/browser/shell_platform_delegate_android.cc from m114 + namespace content { struct ShellPlatformDelegate::ShellData {