Index: rlz/examples/rlz_id.cc |
diff --git a/chrome/browser/android/tab_android.cc b/rlz/examples/rlz_id.cc |
similarity index 51% |
copy from chrome/browser/android/tab_android.cc |
copy to rlz/examples/rlz_id.cc |
index 1b9345a82a6140472c37d9694a3b5281c0df8573..ce01f1831f8e55f4b00bfff1e4b9e829b62648f8 100644 |
--- a/chrome/browser/android/tab_android.cc |
+++ b/rlz/examples/rlz_id.cc |
@@ -2,10 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/android/tab_android.h" |
+#include "rlz/lib/machine_id.h" |
-TabAndroid::TabAndroid() : tab_id_(-1) { |
-} |
+int main() { |
+ std::string machine_id; |
+ if (!rlz_lib::GetMachineId(&machine_id)) |
+ return 1; |
-TabAndroid::~TabAndroid() { |
+ printf("%s\n", machine_id.c_str()); |
} |
Nico
2012/08/22 05:15:45
I'm not sure if "examples" is a great name for thi
|