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

Side by Side Diff: chrome/installer/util/registry_key_backup.h

Issue 7946003: C++ Readability for grt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Trimmed down Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ 5 #ifndef CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_
6 #define CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ 6 #define CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // initialized from a non-existent key. 42 // initialized from a non-existent key.
43 bool WriteTo(HKEY root, const wchar_t* key_path) const; 43 bool WriteTo(HKEY root, const wchar_t* key_path) const;
44 44
45 void swap(RegistryKeyBackup& other) { 45 void swap(RegistryKeyBackup& other) {
46 key_data_.swap(other.key_data_); 46 key_data_.swap(other.key_data_);
47 } 47 }
48 48
49 private: 49 private:
50 class KeyData; 50 class KeyData;
51 51
52 scoped_ptr<KeyData> key_data_; 52 scoped_ptr<KeyData> key_data_;
Yash 2011/10/03 02:17:37 Please add a quick comment for this member.
grt (UTC plus 2) 2011/10/03 15:35:26 Done.
53 53
54 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup); 54 DISALLOW_COPY_AND_ASSIGN(RegistryKeyBackup);
55 }; 55 };
56 56
57 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_ 57 #endif // CHROME_INSTALLER_UTIL_REGISTRY_KEY_BACKUP_H_
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698