- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / music_manager_private / device_id_win.cc
1 // Copyright 2013 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.
4
5 #include "chrome/browser/extensions/api/music_manager_private/device_id.h"
6
7 #if defined(ENABLE_RLZ)
8 #include "rlz/lib/machine_id.h"
9 #endif
10
11 namespace extensions {
12 namespace api {
13
14 // Windows: Use RLZ implementation of GetMachineId.
15 /* static */
16 void DeviceId::GetMachineId(const IdCallback& callback) {
17 #if defined(ENABLE_RLZ)
18   std::string result;
19   rlz_lib::GetMachineId(&result);
20   callback.Run(result);
21 #else
22   // Not implemented if RLZ not defined.
23   callback.Run("");
24 #endif
25 }
26
27 }  // namespace api
28 }  // namespace extensions