blob: e2b110c7e618bae8293a189373fc20b7e446e221 [file] [log] [blame]
sdefresned967d552015-07-16 08:34:351// 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
10namespace rlz {
11
12// static
13rlz_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