[Sync] Componentize UIModelWorker.
[chromium-blink-merge.git] / components / rlz / rlz_tracker_ios.cc
blobe2b110c7e618bae8293a189373fc20b7e446e221
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.
5 #include "components/rlz/rlz_tracker.h"
7 #include "rlz/lib/rlz_lib.h"
8 #include "ui/base/device_form_factor.h"
10 namespace rlz {
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;
19 } // namespace rlz