Get GenericScopedHandle::Set to preserve LastError code
[chromium-blink-merge.git] / rlz / examples / rlz_id.cc
blobce01f1831f8e55f4b00bfff1e4b9e829b62648f8
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
3 // found in the LICENSE file.
5 #include "rlz/lib/machine_id.h"
7 int main() {
8 std::string machine_id;
9 if (!rlz_lib::GetMachineId(&machine_id))
10 return 1;
12 printf("%s\n", machine_id.c_str());