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

Unified Diff: rlz/examples/rlz_id.cc

Issue 10872005: rlz: Add a binary that prints the machine id (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rlz: Add a binary that prints the machine id Created 8 years, 4 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
« no previous file with comments | « no previous file | rlz/rlz.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | rlz/rlz.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698