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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | rlz/rlz.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/tab_android.h" 5 #include "rlz/lib/machine_id.h"
6 6
7 TabAndroid::TabAndroid() : tab_id_(-1) { 7 int main() {
8 std::string machine_id;
9 if (!rlz_lib::GetMachineId(&machine_id))
10 return 1;
11
12 printf("%s\n", machine_id.c_str());
8 } 13 }
Nico 2012/08/22 05:15:45 I'm not sure if "examples" is a great name for thi
9
10 TabAndroid::~TabAndroid() {
11 }
OLDNEW
« 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