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

Side by Side Diff: chrome/browser/prefs/tracked/device_id.h

Issue 836703005: Add a new function for getting a deterministic machine ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/prefs/tracked/device_id_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 #ifndef CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_
6 #define CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_
7
8 #include <string>
9
10 namespace tracked_prefs {
11
12 enum class MachineIdStatus {
13 SUCCESS = 0,
14 FAILURE, // Returned if attempt to obtain a machine-specific ID fails.
15 NOT_IMPLEMENTED // Returned if the method for obtaining a
16 // machine-specific ID is not implemented for
17 // the system.
18 };
19
20 // Populates |machine_id| with a deterministic ID for this
21 // machine. |machine_id| must not be NULL. Returns |FAILURE| if a
grt (UTC plus 2) 2015/01/27 17:06:22 NULL -> null or nullptr. I prefer the former, but
alito 2015/01/27 20:56:55 Done.
22 // machine ID cannot be obtained or |NOT_IMPLEMENTED| on systems for
23 // which this feature is not supported (in both cases |machine_id| is
24 // left untouched).
25 MachineIdStatus GetDeterministicMachineSpecificId(std::string* machine_id);
grt (UTC plus 2) 2015/01/27 17:06:22 Do consumers of this function need to differentiat
gab 2015/01/27 18:27:41 Yes, they will, this is why we added this. i.e. s
26
27 } // namespace tracked_prefs
28
29 #endif // CHROME_BROWSER_PREFS_TRACKED_DEVICE_ID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prefs/tracked/device_id_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698