3

I need to get the source code of Chromium 88. However, officially proposed $ fetch chromium in depot_tools automatically downloads source files from the master branch and does not allow to choose a particular version. Is there a possibility to get (and successfully compile using depot_tools ninja) the source code of Chromium 88, while Chromium 92 is the most recent build?

Asesh
  • 3,186
  • 2
  • 21
  • 31

2 Answers2

3

The master branch of Chromium is not a stable version. Chromium versions are represented by tags. After fetching Chromium source code, you will have to follow the following steps:

From src directory:

Fetch all the tags:

git fetch --tags

Checkout the version you want:

git checkout tags/88.0.4324.86

Pull third-party deps:

gclient sync

Now, you should be able to compile Chromium:

gn gen out\YourBuildFolder
ninja -C out\YourBuildFolder

I have posted more info here

Asesh
  • 3,186
  • 2
  • 21
  • 31
1

That repo is mirrored in GitHub, where you can grab many branches and tags.

https://github.com/chromium/chromium

Once you clone the repo, you can checkout versions by tag (build number).

git checkout 92.0.4482.3
Adrian J. Moreno
  • 14,350
  • 1
  • 37
  • 44
  • Looks like he followed the official direction for getting started with Chromium source, so I have posted the relevant details as another answer – Asesh Apr 20 '21 at 14:29