Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright | |
| 2 | |
| 3 #include "form_factor.h" | |
|
Alexei Svitkine (slow)
2013/10/29 15:26:21
Add a blank line after this.
yao
2013/10/29 19:21:57
Done.
| |
| 4 #include "base/command_line.h" | |
| 5 #include "chrome/common/chrome_switches.h" | |
| 6 | |
| 7 Study_FormFactor GetFormFactor() { | |
| 8 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUI)) { | |
| 9 return Study_FormFactor_TABLET; | |
| 10 } | |
| 11 return Study_FormFactor_PHONE; | |
| 12 } | |
| OLD | NEW |