chromium/rlz/ios/lib/machine_id_ios.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <string>

#include "base/ios/device_util.h"
#include "base/strings/utf_string_conversions.h"

namespace rlz_lib {

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

}  // namespace rlz_lib