machine_id_ios.cc revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
11e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
21e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
31e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// found in the LICENSE file.
41e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
51e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#include "base/ios/device_util.h"
61e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#include "base/strings/string16.h"
71e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#include "base/strings/utf_string_conversions.h"
81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
91e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)namespace rlz_lib {
101e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)bool GetRawMachineId(base::string16* data, int* more_data) {
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  *data = base::ASCIIToUTF16(ios::device_util::GetDeviceIdentifier(NULL));
131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  *more_data = 1;
141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return true;
151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}
161e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
171e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}  // namespace rlz_lib
18