Slide 1

Slide 1 text

(or: all your code could belong to us) chromium Contributing to

Slide 2

Slide 2 text

@notwaldorf [email protected]

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

the long con Act 1:

Slide 5

Slide 5 text

open source ❤

Slide 6

Slide 6 text

❤ user impact

Slide 7

Slide 7 text

❤ GOOD DOCUMENTATION

Slide 8

Slide 8 text

giant codebase ❤

Slide 9

Slide 9 text

❤ NEED A beefy machine

Slide 10

Slide 10 text

the SETUP Act 2:

Slide 11

Slide 11 text

get the code

Slide 12

Slide 12 text

fetch chromium

Slide 13

Slide 13 text

git pull && gclient sync

Slide 14

Slide 14 text

GET A COFFEE

Slide 15

Slide 15 text

get the code build the code

Slide 16

Slide 16 text

ninja -C out/Debug chrome get the code

Slide 17

Slide 17 text

ninja -C out/Release chrome get the code

Slide 18

Slide 18 text

ninja -C out/Release tests get the code

Slide 19

Slide 19 text

get another coffee get the code

Slide 20

Slide 20 text

get the code build the code make changes

Slide 21

Slide 21 text

get the code build the code

Slide 22

Slide 22 text

get the code build the code out/Debug/chrome.exe

Slide 23

Slide 23 text

get the code build the code git commit

Slide 24

Slide 24 text

get the code build the code review changes make changes

Slide 25

Slide 25 text

get the code build the code make changes git cl upload

Slide 26

Slide 26 text

let’s talk about tools Intermission!

Slide 27

Slide 27 text

depot tools

Slide 28

Slide 28 text

generate build files gclient sync

Slide 29

Slide 29 text

ninja BUILD THE CODE

Slide 30

Slide 30 text

git cl upload UPLOAD YOUR CODE

Slide 31

Slide 31 text

git cl upload kinda like git push UPLOAD YOUR CODE

Slide 32

Slide 32 text

git cl try TEST YOUR CODE ON BOTS

Slide 33

Slide 33 text

git cl patch DOWNLOAD FROM CODE REVIEW

Slide 34

Slide 34 text

GIT

Slide 35

Slide 35 text

git pull GET THE NEW CODE

Slide 36

Slide 36 text

git status -sb what is up?

Slide 37

Slide 37 text

git checkout -b foo MAKE A BRANCH

Slide 38

Slide 38 text

git rebase master UPDATE A BRANCH

Slide 39

Slide 39 text

git commit SAVE YOUR CODE

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

code reviews Act 3

Slide 47

Slide 47 text

PIET MONDRIAN de stijl

Slide 48

Slide 48 text

gerrit rietveld de stijl

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

git cl upload

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

OWNERS & OWNER FILES Digression

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

git cl try

Slide 60

Slide 60 text

codesearch tl; dr: crbug how to halp list halp irc https://code.google.com/p/chromium/codesearch https://code.google.com/p/chromium/issues/list [email protected] #chromium http://www.chromium.org/developers/how-tos/get-the-code halpful blog post http://meowni.ca/posts/chromium-101

Slide 61

Slide 61 text

❤ @notwaldorf