Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: chrome/common/form_factor_android.cc

Issue 50603005: Add cross-platform API to get the form factor of the device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698