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

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

Issue 1109043003: Apply automated fixits for Chrome clang plugin to chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_CREATE_REG_KEY_WORK_ITEM_H__ 5 #ifndef CHROME_INSTALLER_UTIL_CREATE_REG_KEY_WORK_ITEM_H__
6 #define CHROME_INSTALLER_UTIL_CREATE_REG_KEY_WORK_ITEM_H__ 6 #define CHROME_INSTALLER_UTIL_CREATE_REG_KEY_WORK_ITEM_H__
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "chrome/installer/util/work_item.h" 13 #include "chrome/installer/util/work_item.h"
14 14
15 // A WorkItem subclass that creates a registry key at the given path. 15 // A WorkItem subclass that creates a registry key at the given path.
16 // It also creates all necessary intermediate keys if they do not exist. 16 // It also creates all necessary intermediate keys if they do not exist.
17 class CreateRegKeyWorkItem : public WorkItem { 17 class CreateRegKeyWorkItem : public WorkItem {
18 public: 18 public:
19 virtual ~CreateRegKeyWorkItem(); 19 ~CreateRegKeyWorkItem() override;
20 20
21 virtual bool Do(); 21 bool Do() override;
22 22
23 virtual void Rollback(); 23 void Rollback() override;
24 24
25 private: 25 private:
26 friend class WorkItem; 26 friend class WorkItem;
27 27
28 CreateRegKeyWorkItem(HKEY predefined_root, 28 CreateRegKeyWorkItem(HKEY predefined_root,
29 const std::wstring& path, 29 const std::wstring& path,
30 REGSAM wow64_access); 30 REGSAM wow64_access);
31 31
32 // Initialize key_list_ by adding all paths of keys from predefined_root_ 32 // Initialize key_list_ by adding all paths of keys from predefined_root_
33 // to path_. Returns true if key_list_ is non empty. 33 // to path_. Returns true if key_list_ is non empty.
(...skipping 11 matching lines...) Expand all
45 45
46 // List of paths to all keys that need to be created from predefined_root_ 46 // List of paths to all keys that need to be created from predefined_root_
47 // to path_. 47 // to path_.
48 std::vector<std::wstring> key_list_; 48 std::vector<std::wstring> key_list_;
49 49
50 // Whether any key has been created. 50 // Whether any key has been created.
51 bool key_created_; 51 bool key_created_;
52 }; 52 };
53 53
54 #endif // CHROME_INSTALLER_UTIL_CREATE_REG_KEY_WORK_ITEM_H__ 54 #endif // CHROME_INSTALLER_UTIL_CREATE_REG_KEY_WORK_ITEM_H__
OLDNEW
« no previous file with comments | « chrome/installer/util/create_dir_work_item_unittest.cc ('k') | chrome/installer/util/create_reg_key_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698