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

Side by Side Diff: chrome/browser/task_manager/task_manager_browsertest_util.cc

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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) 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 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" 5 #include "chrome/browser/task_manager/task_manager_browsertest_util.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 16 matching lines...) Expand all
27 27
28 class ResourceChangeObserver : public TaskManagerModelObserver { 28 class ResourceChangeObserver : public TaskManagerModelObserver {
29 public: 29 public:
30 ResourceChangeObserver(const TaskManagerModel* model, 30 ResourceChangeObserver(const TaskManagerModel* model,
31 int required_count, 31 int required_count,
32 const base::string16& title_pattern) 32 const base::string16& title_pattern)
33 : model_(model), 33 : model_(model),
34 required_count_(required_count), 34 required_count_(required_count),
35 title_pattern_(title_pattern) {} 35 title_pattern_(title_pattern) {}
36 36
37 virtual void OnModelChanged() OVERRIDE { 37 virtual void OnModelChanged() override {
38 OnResourceChange(); 38 OnResourceChange();
39 } 39 }
40 40
41 virtual void OnItemsChanged(int start, int length) OVERRIDE { 41 virtual void OnItemsChanged(int start, int length) override {
42 OnResourceChange(); 42 OnResourceChange();
43 } 43 }
44 44
45 virtual void OnItemsAdded(int start, int length) OVERRIDE { 45 virtual void OnItemsAdded(int start, int length) override {
46 OnResourceChange(); 46 OnResourceChange();
47 } 47 }
48 48
49 virtual void OnItemsRemoved(int start, int length) OVERRIDE { 49 virtual void OnItemsRemoved(int start, int length) override {
50 OnResourceChange(); 50 OnResourceChange();
51 } 51 }
52 52
53 void RunUntilSatisfied() { 53 void RunUntilSatisfied() {
54 // See if the condition is satisfied without having to run the loop. This 54 // See if the condition is satisfied without having to run the loop. This
55 // check has to be placed after the installation of the 55 // check has to be placed after the installation of the
56 // TaskManagerModelObserver, because resources may change before that. 56 // TaskManagerModelObserver, because resources may change before that.
57 if (IsSatisfied()) 57 if (IsSatisfied())
58 return; 58 return;
59 59
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 base::string16 MatchPrint(const char* title) { 188 base::string16 MatchPrint(const char* title) {
189 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX, 189 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX,
190 base::ASCIIToUTF16(title)); 190 base::ASCIIToUTF16(title));
191 } 191 }
192 192
193 base::string16 MatchAnyPrint() { return MatchPrint("*"); } 193 base::string16 MatchAnyPrint() { return MatchPrint("*"); }
194 194
195 } // namespace browsertest_util 195 } // namespace browsertest_util
196 } // namespace task_manager 196 } // namespace task_manager
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest.cc ('k') | chrome/browser/task_manager/task_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698