Jump to content

mjd79

Member
  • Posts

    179
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Poland

1 Follower

About mjd79

Profile Information

  • OS
    Windows 7 x64

Recent Profile Visitors

34,183 profile views

mjd79's Achievements

201

Reputation

  1. No, any pure Chromium lacks API keys and OAuth2, I remind you that I only applied e3kskoy7wqk patches to the completely original Chromium. I have not tried this flag, I will check it under Win7, on which, of course, my rebuilts work. I will now look for the cause of the crash on 7 SP0. BTW I tried to restore at least partially the old look, unfortunately Chromium 135 has the old code completely removed. The only thing I can do is to restore the default color scheme of the omnibox, reduce the height of the elements on it, restore the old icons. In the "3 dots" settings menu I will try to change the font to non-bold, remove the icons and reduce it to the size it was before CR23. I was also able to restore the flag that disables Chrome Labs.
  2. Unfortunately, Chrome Sync still does not work after adding Google API keys, you still need OAuth2 keys. As a not being a Chromium developer, you can only use the default keys, which can be added with the --oauth2-client-id and --oauth2-client-secret flags. There is a simple solution for this, so that you won't have to add flag it to shortcuts or in the registry (in case you set it as default browser) void ChromeMainDelegate::PreSandboxStartup() { base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); std::string process_type = command_line->GetSwitchValueASCII(switches::kProcessType); // OAuth2 client ID if (!command_line->HasSwitch("oauth2-client-id")) { command_line->AppendSwitchASCII("oauth2-client-id", "77185425430.apps.googleusercontent.com"); } // OAuth2 client secret if (!command_line->HasSwitch("oauth2-client-secret")) { command_line->AppendSwitchASCII("oauth2-client-secret", "OTJgUOQcT7lO7GsGZq2G4IlT"); } With this code, replace the PreSandboxStartup() function in the chrome_main_delegate.cc file. Edit: in testing/variations/fieldtrial_testing_config.json there are flags about TabStripComboButton and disabling MV2 support. They override the default values declared in the corresponding files, hence you need to remove them from this json.
  3. The patcher included by e3kskoy7wqk, along with the diff files for each compilation (a total of 5 apply_patches.bat files), require a bit more correction than the author claims. At “REPO_PATH=E:\win7dep\chromium\src” change the path to yours, of course, but besides that, you also need to replace “!REPO_PATH!” with “%REPO_PATH%” in two places. In addition, it is required to add clang_use_chrome_plugins = false to args.gn.
  4. For now i5 6500, I just had a Ryzen 1700 lying around for a long time, I bought a MSI B450 motherboard for it yesterday. On the i5 compilation takes 15-20 hours, depending on the number of objects. On your processor it will be at least about 36 hours. 16GB of RAM is also the absolute minimum. And no, unfortunately it can't be done on 8.1. Edit: 8 hours on Ryzen 1700, the rest of the hardware configuration except the motherboard the same. On the i5 6500 as I wrote earlier 15 hours. However, 32GB RAM is not necessary for me for now
  5. I, for one, instead of having pointless arguments on the forums, came to how to avoid compilation errors that appear (which may not be there in your case, from what I learned on the Chromium forums, the problem can occur randomly depending on a great many factors) For start, autoninja -C out/chromium135r72 ..\..\chrome\windows_services\elevated_tracing_service\elevated_tracing_service.cc^^ When the error occurs, you will see the name of the directory in the system %TEMP%, e.g. tmpxxlxwh5i, and the destination path where you should paste the files contained in it. Then autoninja -C out\chromium135r72 ..\..\chrome\updater\app\app_server_win.cc^^ and repeat the previous step, except that now the directories in the temp folder will be three. This way I will be able to compile uninterrupted while I am sleeping or not at home. Edit: I forgot, after copying the files you need to run the command again to complete the compilation of the module. “chromium135r72” should be replaced with the name which you selected in the gn args out command
  6. This is my personal lowest priority, but from what I've gathered, it won't be difficult.
  7. I don't know, maybe I'm just stupid, but the compiler kept telling me what to do with them. There were two errors, regarding elevation service and updater legacy. In both cases, the compiler components created corrected files in temporary files, which had to be copied to src\third_party\win_build_output.... I was doing this correctly all the time with elevation service, but for some reason not with updater legacy, which I copied to out\Default\gen\... ninja has the ability to compile individual objects, it seems that I will have to compile those problematic elements first and paste the fix generated by it even before I start compiling the whole. I'm currently finishing compiling already I can't even remember which version (it's been compiling since 3 pm on Sunday, and it's 8 am on Monday) I have 2000 objects left, which will take maybe half an hour. I purchased slightly better hardware (Ryzen 7 1700, 32GB of DDR4 RAM) to make the compilation time significantly shorter, should be at my place tomorrow. Edit: YES!!!!!! I GOT IT! However, this is built with the parameters is_debug = true and is_component_build = true, because the number of objects was only 53,000 instead of 87,000. I will build the version with the parameter is_official_build = true after I assemble and configure the new computer.
  8. This man compiles almost pure Chromium. He only adds basic codecs and ffmpeg. You can always compile yourself, but as you can see, despite the seemingly trivial instructions, it's not so easy.
  9. I will at least write a compilation tutorial in Windows and for Windows What you need. Windows 10/11 (probably the minimum version of 10 is 1809, but I'm not sure, just check if the tools listed next support your compilation) Visual Studio 2022 (can be free Community), git and Python (minimum 3.9.0) First, run the Visual Studio installer from CMD with the following arguments. PATH_TO_INSTALLER.EXE --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.ATLMFC --includeRecommended. Then install the Windows 11 SDK in the latest available version. Also install git and python. In Git Bash, configure: git config --global user.name "My Name" git config --global user.email "my-name@chromium.org" (optional) git config --global core.autocrlf false git config --global core. filemode false git config --global core.preloadindex true git config --global core.fscache true git config --global branch.autosetuprebase always git config --global core.longpaths true Now we will take care of downloading depot_tools. In my example, you first need to create a src folder in C:/. Then in the console: cd C:\src git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git Then add the environment variables: DEPOT_TOOLS_WIN_TOOLCHAIN=0 vs2022_install=C:\Program Files\Microsoft Visual Studio\Community (or other edition) NINJA_SUMMARIZE_BUILD=1. Also add in the patch variable the path to depot_tools (eg. C:\src\depot_tools) before any Python installation. Next simply run the gclient command, it will download the basic components needed. Now in the folder where depot_tools is located, create a directory, for example, named chromium. Go to it in the console and run the command gclient sync if you want to download the latest version, or gclient sync --revision src@xxx.x.xxxx.xx (the version number you need) --no-history. Downloading the entire history, including branches and tags is about 50GB, I think it's not worth it. Then we will move on to compilation. Go to the src folder inside the folder we named chromium earlier in the console, and run gn args out/Default (you can name it whatever you want). This will open your default notepad, where you can set all the arguments. If compiling under Windows, I recommend using at least the following: is_official_build = true is_component_build = false is_debug = false target_os = "win" target_cpu = "" (x64, x86) clang_use_chrome_plugins = false (if compiling build with e3kskoy7wqk patches only) symbol_level = 0 v8_symbol_level = 0 blink_symbol_level = 0 proprietary_codecs = true ffmpeg_branding = "Chrome" chrome_pgo_phase = 0 You can also add arguments about Google API keys or widevine google_api_key = " " google_default_client_id = " " google_default_client_secret = " " enable_widevine = true ignore_missing_widevine_signing_cert = true enable_media_drm_storage = true Save the args.gn file and close notepad, gn will generate the necessary files. Now just use the autoninja -C out/Default (you can also add the parameter "-j X", where X is the number of clang compiler processes)
  10. After 10 hours of compilation, I received errors. Then I would face another 10 hours, and in the meantime more errors would appear. Not for my patience, I pity the money for more powerful hardware, as long as I can't compile without errors, and I'm not able to do that at the moment at this compilation rate. I apologize to the users I disappointed, apparently I'm not smart enough after all and despite following the instructions I keep doing something wrong all the time
  11. It's now a question for users whether ungoogled or Vista support is more of a priority. My computer can take more than 24 hours for one compilation. Unfortunately, in the previous system installation and previous software setup, I made such a mess of things with the trial-and-error method (and doing some things at my own discretion, not how the tutorials dictate) that something went wrong during compilation. This time I found much better tutorials and have experience from the previous tries. Compiling Chromium in theory is very simple, but very many things can go wrong. Now I downloading the entire repository with every possible version from the main branch. You can also fetch with the command -gclient sync --revision src@137.0.7116.0.
  12. I have just managed to start compiling for now a clean Chromium 137.0.7116.0 without any patches, just to be sure that no problems will occur. If successful, my intention is to apply all the patches from https://github.com/e3kskoy7wqk/Chromium-for-windows-7/tree/main/137.0.7116.0 and restore Vista and 7 SP0 compatibility, and 32 and 64 bit versions using https://github.com/Chuyu-Team/YY-Thunks/ - what the author of Chromium for Windows 7 does not intend to continue for some reason, despite the fact that it is the simplest and very well working solution.
  13. It seems that yes, chrome.dll is already 270mb....
  14. Ok, so now it's time for specifics and evidence. I'll start with v135 ungoogled and v137 on Windows Vista SP2 x64 (update level 2017.04 - final). Let's start with what extended kernel files can be redirected locally (v2023-03-09 rev2). Most except ntdll.dll, bcrypt.dll, and kernel32.dll. Included in this version is kernel33.dll, and it is this that should be used by renaming it to kernel32.dll. Then paste that below into notepad, save it as a file with a .reg extension and add it to the registry. This turns on the ability to redirect DLLs locally. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options] "DevOverrideEnable"=dword:00000001 Just create a folder chrome.exe.local in the folder with it and copy these files. Now, using CFF Explorer, change the NtOpenKeyEx import in chrome_elf.dll to NtOpenKey (thanks to D.Draker for the hint) On some graphics cards with very old drivers supporting, for example, only DX9, the GPU sandbox may crash. In this case, create a shortcut to chrome.exe and add --disable-gpu-sandbox. In chrome://flags set "Choose ANGLE graphics" backend to D3D9, from now on the browser should work correctly without this flag. Now I'll move on to 7 SP0, in which it turns out. you need advapi32.dll from Vista's extended kernel or from Supermium 132 (it's called p_advp32.dll there) In the first case (x64 only), use CFF Explorer to replace the import from RPCRT4.dll I_RpcBindingIsServerLocal with I_RpcBindingIsClientLocal. Then open chrome.dll in HxD, for example, and search for advapi32.dll. You will find it in two places, change it to e.g. advapi33.dll and save. In the same way, of course, name the file from Vista ext kernel/Supermium. That's it, the browser should work fine. I also recommend adding this to the registry so that non-ungoogled versions don't disable MV2 extensions on their own, and so that they can be added from the Chrome Web Store. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Chromium] "ExtensionManifestV2Availability"=dword:00000002 Screen confirming disabling client hint working in one of the previous posts, this one would be too long.
×
×
  • Create New...