summaryrefslogtreecommitdiffstats
path: root/rlz/ios/lib/machine_id_ios.cc
diff options
context:
space:
mode:
Diffstat (limited to 'rlz/ios/lib/machine_id_ios.cc')
-rw-r--r--rlz/ios/lib/machine_id_ios.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/rlz/ios/lib/machine_id_ios.cc b/rlz/ios/lib/machine_id_ios.cc
new file mode 100644
index 0000000..3440978
--- /dev/null
+++ b/rlz/ios/lib/machine_id_ios.cc
@@ -0,0 +1,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(string16* data, int* more_data) {
+ *data = ASCIIToUTF16(ios::device_util::GetDeviceIdentifier(NULL));
+ *more_data = 1;
+ return true;
+}
+
+} // namespace rlz_lib