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

Side by Side Diff: rlz/win/lib/machine_deal.h

Issue 63153009: Use RegistryOverrideManager properly in RLZ tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added doc comment for InitializeRegistryOverridesForTesting Created 7 years, 1 month 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
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 // Library functions related to the OEM Deal Confirmation Code. 5 // Library functions related to the OEM Deal Confirmation Code.
6 6
7 #ifndef RLZ_WIN_LIB_MACHINE_DEAL_H_ 7 #ifndef RLZ_WIN_LIB_MACHINE_DEAL_H_
8 #define RLZ_WIN_LIB_MACHINE_DEAL_H_ 8 #define RLZ_WIN_LIB_MACHINE_DEAL_H_
9 9
10 #include <string> 10 #include <string>
11 #include "rlz/win/lib/rlz_lib.h" 11 #include "rlz/lib/rlz_lib.h"
12 12
13 namespace rlz_lib { 13 namespace rlz_lib {
14 14
15 class MachineDealCode { 15 class MachineDealCode {
16 public: 16 public:
17 // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ 17 // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ
18 // initalization. Must have write access to HKLM - SYSTEM or admin, unless 18 // initalization. Must have write access to HKLM - SYSTEM or admin, unless
19 // rlz_lib::CreateMachineState() has been successfully called. 19 // rlz_lib::CreateMachineState() has been successfully called.
20 static bool Set(const char* dcc); 20 static bool Set(const char* dcc);
21 21
(...skipping 30 matching lines...) Expand all
52 // been successfully called. 52 // been successfully called.
53 static bool Clear(); 53 static bool Clear();
54 54
55 MachineDealCode() {} 55 MachineDealCode() {}
56 ~MachineDealCode() {} 56 ~MachineDealCode() {}
57 }; 57 };
58 58
59 } // namespace rlz_lib 59 } // namespace rlz_lib
60 60
61 #endif // RLZ_WIN_LIB_MACHINE_DEAL_H_ 61 #endif // RLZ_WIN_LIB_MACHINE_DEAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698