summaryrefslogtreecommitdiffstats
path: root/rlz/ios/lib/machine_id_ios.cc
blob: f000ce56309fe72ec4f3e6a4c7eae10a14147745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2013 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 "base/ios/device_util.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"

namespace rlz_lib {

bool GetRawMachineId(base::string16* data, int* more_data) {
  *data = base::ASCIIToUTF16(ios::device_util::GetDeviceIdentifier(NULL));
  *more_data = 1;
  return true;
}

}  // namespace rlz_lib