sdefresne | d967d55 | 2015-07-16 08:34:35 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "components/rlz/rlz_tracker.h" |
| 6 | |
| 7 | #include "rlz/lib/rlz_lib.h" |
| 8 | #include "ui/base/device_form_factor.h" |
| 9 | |
| 10 | namespace rlz { |
| 11 | |
| 12 | // static |
| 13 | rlz_lib::AccessPoint RLZTracker::ChromeOmnibox() { |
| 14 | return ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE |
| 15 | ? rlz_lib::CHROME_IOS_OMNIBOX_MOBILE |
| 16 | : rlz_lib::CHROME_IOS_OMNIBOX_TABLET; |
| 17 | } |
| 18 | |
| 19 | } // namespace rlz |