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

Side by Side Diff: chrome/test/base/chrome_process_util.cc

Issue 637933002: Replace FINAL and OVERRIDE with their C++11 counterparts in chrome/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 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 #include "chrome/test/base/chrome_process_util.h" 5 #include "chrome/test/base/chrome_process_util.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 class ChildProcessFilter : public base::ProcessFilter { 64 class ChildProcessFilter : public base::ProcessFilter {
65 public: 65 public:
66 explicit ChildProcessFilter(base::ProcessId parent_pid) 66 explicit ChildProcessFilter(base::ProcessId parent_pid)
67 : parent_pids_(&parent_pid, (&parent_pid) + 1) {} 67 : parent_pids_(&parent_pid, (&parent_pid) + 1) {}
68 68
69 explicit ChildProcessFilter(const std::vector<base::ProcessId>& parent_pids) 69 explicit ChildProcessFilter(const std::vector<base::ProcessId>& parent_pids)
70 : parent_pids_(parent_pids.begin(), parent_pids.end()) {} 70 : parent_pids_(parent_pids.begin(), parent_pids.end()) {}
71 71
72 virtual bool Includes(const base::ProcessEntry& entry) const OVERRIDE { 72 virtual bool Includes(const base::ProcessEntry& entry) const override {
73 return parent_pids_.find(entry.parent_pid()) != parent_pids_.end(); 73 return parent_pids_.find(entry.parent_pid()) != parent_pids_.end();
74 } 74 }
75 75
76 private: 76 private:
77 const std::set<base::ProcessId> parent_pids_; 77 const std::set<base::ProcessId> parent_pids_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(ChildProcessFilter); 79 DISALLOW_COPY_AND_ASSIGN(ChildProcessFilter);
80 }; 80 };
81 81
82 ChromeProcessList GetRunningChromeProcesses(base::ProcessId browser_pid) { 82 ChromeProcessList GetRunningChromeProcesses(base::ProcessId browser_pid) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 base::ProcessHandle process) { 144 base::ProcessHandle process) {
145 #if !defined(OS_MACOSX) 145 #if !defined(OS_MACOSX)
146 process_metrics_.reset( 146 process_metrics_.reset(
147 base::ProcessMetrics::CreateProcessMetrics(process)); 147 base::ProcessMetrics::CreateProcessMetrics(process));
148 #else 148 #else
149 process_metrics_.reset( 149 process_metrics_.reset(
150 base::ProcessMetrics::CreateProcessMetrics(process, NULL)); 150 base::ProcessMetrics::CreateProcessMetrics(process, NULL));
151 #endif 151 #endif
152 process_handle_ = process; 152 process_handle_ = process;
153 } 153 }
OLDNEW
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.h ('k') | chrome/test/base/chrome_render_view_host_test_harness.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698