A scaled-back interface-compatible version of Chromium's base library

Clone this repo:


  1. ef0ded8 win: MSVS 2017 (15)/C++ 14.1/C 19.10 compatibility by Mark Mentovai · 7 days ago master
  2. 1d2a024 android: Use _FILE_OFFSET_BITS after all (undo dc3d480305b2) by Mark Mentovai · 9 days ago
  3. dc3d480 android: Don’t set _FILE_OFFSET_BITS, it never worked by Mark Mentovai · 13 days ago
  4. 9a7a549 Terminate from CHECK(), LOG(FATAL) consistently by Mark Mentovai · 4 weeks ago
  5. 2c1b540 android: Recognize Bionic’s semantics for strerror_r() by Mark Mentovai · 5 weeks ago


This is mini_chromium, a small collection of useful low-level (“base”) routines from the Chromium open-source project. Chromium is large, sprawling, full of dependencies, and a web browser. mini_chromium is small, self-contained, and a library. mini_chromium is especially useful as a dependency of other code that wishes to use Chromium’s base routines. By using mini_chromium, other projects’ code can function in a standalone environment outside of Chromium without having to treat all of Chromium as a dependency. When building as part of Chromium, those projects’ code can use Chromium’s own (non-mini_chromium) base implementation.

Code provided in mini_chromium provides the same interface as the equivalent code in Chromium.

While it’s a goal of mini_chromium to maintain interface compatibility with Chromium’s base library for the interfaces it does implement, there’s no requirement that it use the same implementations as Chromium’s base library. Many of the implementations used in mini_chromium are identical to Chromium’s, but many others have been modified to eliminate dependencies that are not desired in mini_chromium, and a few are completely distinct from Chromium’s altogether. Additionally, when mini_chromium provides an interface in the form of a file or class present in Chromium, it’s not bound to provide all functions, methods, or types that the Chromium equivalent does. The differences noted above notwithstanding, the interfaces exposed by mini_chromium’s base are and must remain a strict subset of Chromium’s.

Crashpad is the chief consumer of mini_chromium.

Mark Mentovai