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

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

Issue 1111613002: chrome/installer/util: Fix warnings found by clang chromium-style plugin on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/installer/util/conditional_work_item_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CONDITIONAL_WORK_ITEM_LIST_H_ 5 #ifndef CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_
6 #define CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ 6 #define CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_
7 7
8 #include "chrome/installer/util/work_item_list.h" 8 #include "chrome/installer/util/work_item_list.h"
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 30 matching lines...) Expand all
41 bool ShouldRun() const; 41 bool ShouldRun() const;
42 42
43 private: 43 private:
44 base::FilePath key_path_; 44 base::FilePath key_path_;
45 }; 45 };
46 46
47 // Condition class that inverts the ShouldRun result of another Condition. 47 // Condition class that inverts the ShouldRun result of another Condition.
48 // This class assumes ownership of original_condition. 48 // This class assumes ownership of original_condition.
49 class Not : public WorkItem::Condition { 49 class Not : public WorkItem::Condition {
50 public: 50 public:
51 explicit Not(WorkItem::Condition* original_condition) 51 explicit Not(WorkItem::Condition* original_condition);
52 : original_condition_(original_condition) {} 52 ~Not();
53
53 bool ShouldRun() const; 54 bool ShouldRun() const;
54 55
55 private: 56 private:
56 scoped_ptr<WorkItem::Condition> original_condition_; 57 scoped_ptr<WorkItem::Condition> original_condition_;
57 }; 58 };
58 59
59
60 #endif // CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ 60 #endif // CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/conditional_work_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698