For Developers‎ > ‎Coding Style‎ > ‎



Java in Chromium follows the Android Open Source style guide with the following exceptions/modifications:
  • Copyright header should use Chromium style.
  • TODO should follow chromium convention i.e. TODO(username)
For automated style checking install checkstyles.


"Top level directories" are defined as directories with a gyp file, such as base/ and content/, Chromium java should live in a directory named <top level directory>/android/java, with a package name org.chromium.<top level directory>.  Each top level directory's java should build into a distinct jar that honors the abstraction specified in a native checkdeps (e.g. org.chromium.base does not import org.chromium.content).  The full path of any java file should contain the complete package name.

For example, top level directory base/ might contain a file named base/android/java/org/chromium/base/  This would get compiled into a chromium_base.jar (final jar name TBD). would live in chrome/android/java/org/chromium/chrome/browser/foo/

New <top level directory>/android directories should have an OWNERS file much like