Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Unified Diff: rlz/ios/lib/machine_id_ios.cc

Issue 29873005: Implements RLZ lib for iOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use correct access points enums on iOS Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: rlz/ios/lib/machine_id_ios.cc
diff --git a/rlz/ios/lib/machine_id_ios.cc b/rlz/ios/lib/machine_id_ios.cc
new file mode 100644
index 0000000000000000000000000000000000000000..344097871efaca0e391e0edb9865d73fa8544dda
--- /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

Powered by Google App Engine
This is Rietveld 408576698