This page may be out of date. Submit any pending changes before refreshing this page.
Hide this message.
Quora uses cookies to improve your experience. Read more

How many lines of code is Google Chrome?

3 Answers
Glen Murphy
Glen Murphy, Design Director, Google Chrome
According to Ohloh, as of August 2011 the Chromium codebase consists of about five million lines of code, and 1.7 million lines of comments and blanks, though there's probably a lot of wiggle room depending on how you slice it (it includes third_party code, tests, chromeos-specific bits etc):
http://www.ohloh.net/p/chrome/an...

I'm pretty sure that number doesn't include WebKit (since the reported size of the WebKit codebase was bigger than the Chromium codebase in 2008), which is an additional 3.6 million lines (+1.5 million in comments and blanks):
http://www.ohloh.net/p/WebKit/an...
Your feedback is private.
Is this answer still relevant and up to date?
Shashwat Anand
Shashwat Anand, Participated in Google Summer of Code.
4,490,488 lines of code, 5,448,668 lines with comments included, spread over 21,367 unique files.

Used Cloc [ http://cloc.sourceforge.net/ ] just like Dan Loewenherz did for the question How many lines of code are in the Linux kernel?

Breakdown by languages.
  1. C++ - 1,650,784 lines, 7,264 files.
  2. C - 1,119,835 lines, 2,007 files
  3. C/C++ Headers - 719,761 lines, 7,902 files
  4. HTML - 384,433 lines, 1,899 files.
  5. Bourne Shell - 157,373 lines, 159 files.
  6. Javascript - 145,717 lines, 710 files.
  7. Python - 105,418 lines, 704 files.
  8. XML - 43,214 lines, 74 files.
  9. m4 - 43,201 lines, 49 files.
  10. Assembly - 41,285 lines, 28 files.
  11. Perl - 17,368 lines, 25 files.
  12. CSS - 14,650 lines, 154 files.
  13. make - 13,300 lines, 143 files.
  14. IDL - 10,453 lines, 69 files.
  15. Tcl/Tk - 6,969 lines, 36 files.
  16. yacc - 4,786 lines, 3 files.
  17. Objective C - 2,811 lines, 32 files.
  18. Teamcenter def - 2,802 lines, 17 files.
  19. PHP - 1,475 lines, 5 files.
  20. C# - 1,226 lines, 11 files.
  21. Bourne Again Shell - 767 lines, 12 files.
  22. lex - 633 lines, 2 files.
  23. SQL - 556 lines, 20 files.
  24. XSLT - 324 lines, 3 files.
  25. awk - 253 lines, 6 files.
  26. DOS Batch - 252 lines, 15 files.
  27. Java - 166 lines, 2 files.
  28. Go - 150 lines, 1 file.
  29. sed - 134 lines, 3 files.
  30. Lisp - 120 lines, 2 files.
  31. DTD - 116 lines, 2 files.
  32. MSBuild Scripts - 100 lines, 1 file.
  33. YAML - 36 lines, 5 files.
  34. Ruby - 15 lines, 1 file.
  35. Vim Scripts - 5 lines, 1 file.
Chromium's rendering engine contains
approximately 1,000,000 lines of code (excluding blank lines
and comments), whereas the browser kernel contains approximately 700,000 lines of code.

http://seclab.stanford.edu/webse...