summaryrefslogtreecommitdiffstats
path: root/components/rlz/rlz_tracker_ios.cc
blob: e2b110c7e618bae8293a189373fc20b7e446e221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/rlz/rlz_tracker.h"

#include "rlz/lib/rlz_lib.h"
#include "ui/base/device_form_factor.h"

namespace rlz {

// static
rlz_lib::AccessPoint RLZTracker::ChromeOmnibox() {
  return ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_PHONE
             ? rlz_lib::CHROME_IOS_OMNIBOX_MOBILE
             : rlz_lib::CHROME_IOS_OMNIBOX_TABLET;
}

}  // namespace rlz