Getting an old version of cef

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Getting an old version of cef

Postby Tom741 » Sat Sep 20, 2014 4:17 pm

Hello everyone,
I have an issue with an old version of cef regarding the useragent (https://code.google.com/p/chromiumembed ... il?id=1275).
Someone found a workaround and modify directly the useragent from the source. After some search, I said to myself that's it is maybe time to get the source and modify it myself as well :) .

I'm on Windows 8.1
I tried to follow the best I could the procedure on (http://dev.chromium.org/developers/how-tos/get-the-code) and (https://code.google.com/p/chromiumembed ... ndBuilding)
After few hours of work (I'm not really into python/git/c), I succeeded to download the source (I guess).

But I guess it took the latest version (looking at /src/chrome/VERSION : MAJOR=39 MINOR=0 BUILD=2165 PATCH=0)

The version I want is CEF 3.1916.1721 - Chromium 35.0.1916.86

Is it possible to get the source of this exact version ? Where can I check the version I have ?
If yes, can you explain me how can I do ?

I used depot_tools and as far as I remember, here is the command lines I put:
gclient --version
gclient --version
fetch chromium
client sync

Thanks.
Tom741
Techie
 
Posts: 31
Joined: Tue Aug 19, 2014 9:16 am

Re: Getting an old version of cef

Postby magreenblatt » Sat Sep 20, 2014 6:43 pm

Use the automate-git.py script and pass the '--branch=1916' command-line argument.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Getting an old version of cef

Postby Tom741 » Sun Sep 21, 2014 8:03 am

Hello,
Thanks for your reply.
I used automate-git.py.
It took the branch 1916 as well, but is there a way to tell it that I want the .86 patch version ? It took the latest one automatically (.136).

Thnaks.
Tom741
Techie
 
Posts: 31
Joined: Tue Aug 19, 2014 9:16 am

Re: Getting an old version of cef

Postby Tom741 » Sun Sep 21, 2014 12:25 pm

Ok here are the latest news. thanks to --help command on automate-git, I used the --checkout parameter. I finally found what I think is the right revision I was looking for.
Here is the output:
-debug-build
--> Download Directory: C:\dev\chrome
--> Depot Tools Directory: C:\dev\chrome\depot_tools
-------- Running "update_depot_tools.bat" in "C:\dev\chrome\depot_tools"...
-------- Running "C:\dev\chrome\depot_tools\git.bat config --get remote.origin.u
rl" in "C:\dev\chrome\cef_1916"...
--> CEF Branch: 1916
--> CEF URL: https://chromiumembedded@bitbucket.org/ ... ranches-19
16-cef3.git
--> CEF Source Directory: C:\dev\chrome\cef_1916
-------- Running "C:\dev\chrome\depot_tools\git.bat rev-parse HEAD" in "C:\dev\c
hrome\cef_1916"...
-------- Running "C:\dev\chrome\depot_tools\git.bat fetch" in "C:\dev\chrome\cef
_1916"...
-------- Running "C:\dev\chrome\depot_tools\git.bat rev-parse 7bfe45655d52ef864c
03292540d995036e24d624" in "C:\dev\chrome\cef_1916"...
--> CEF Current Checkout: 5f926588832cdbd8bb52f9b7922d34b9465f97b4
-------- Running "C:\dev\chrome\depot_tools\git.bat log --grep=^git-svn-id: -n 1
5f926588832cdbd8bb52f9b7922d34b9465f97b4" in "C:\dev\chrome\cef_1916"...
--> CEF Current Revision: 1718
--> CEF Desired Checkout: 7bfe45655d52ef864c03292540d995036e24d624 (7bfe45655d52
ef864c03292540d995036e24d624)
-------- Running "C:\dev\chrome\depot_tools\git.bat log --grep=^git-svn-id: -n 1
7bfe45655d52ef864c03292540d995036e24d624" in "C:\dev\chrome\cef_1916"...
--> CEF Desired Revision: 1721
-------- Running "C:\dev\chrome\depot_tools\git.bat checkout 7bfe45655d52ef864c0
3292540d995036e24d624" in "C:\dev\chrome\cef_1916"...
Previous HEAD position was 5f92658... Fix delivery of focus/blur events (issue #
1301).
HEAD is now at 7bfe456... Force revert local changes when using the --force-clea
n switch (issue #1300).
--> CEF Output Directory: C:\dev\chrome\out_1916
-------- Running "gclient sync --nohooks --with_branch_heads --jobs 16" in "C:\d
ev\chrome\chromium"...


Am I on the right track ?
Tom741
Techie
 
Posts: 31
Joined: Tue Aug 19, 2014 9:16 am

Re: Getting an old version of cef

Postby magreenblatt » Mon Sep 22, 2014 10:41 am

Yes, specifying an older CEF revision/hash as the --checkout parameter should build that version.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Getting an old version of cef

Postby Tom741 » Mon Sep 22, 2014 12:50 pm

Hello,
After hours of downloading and compiling, I finally succeeded to get the source and being able to compile with: ninja -C out/Release cefclient

That was pretty easy, just needed to find the right way to do it :)

Thanks for your help.
Tom741
Techie
 
Posts: 31
Joined: Tue Aug 19, 2014 9:16 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 50 guests