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

Unified Diff: content/gpu/gpu_watchdog_thread.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_process.h ('k') | content/gpu/in_process_gpu_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_watchdog_thread.h
diff --git a/content/gpu/gpu_watchdog_thread.h b/content/gpu/gpu_watchdog_thread.h
index ea692bc00caacfebeafc336c1f3a28b55c1b27c9..c766ca3493796949c6f8365c5f879630a8de38e0 100644
--- a/content/gpu/gpu_watchdog_thread.h
+++ b/content/gpu/gpu_watchdog_thread.h
@@ -29,15 +29,15 @@ class GpuWatchdogThread : public base::Thread,
void PostAcknowledge();
// Implement GpuWatchdog.
- virtual void CheckArmed() override;
+ void CheckArmed() override;
// Must be called after a PowerMonitor has been created. Can be called from
// any thread.
void AddPowerObserver();
protected:
- virtual void Init() override;
- virtual void CleanUp() override;
+ void Init() override;
+ void CleanUp() override;
private:
friend class base::RefCountedThreadSafe<GpuWatchdogThread>;
@@ -47,18 +47,17 @@ class GpuWatchdogThread : public base::Thread,
class GpuWatchdogTaskObserver : public base::MessageLoop::TaskObserver {
public:
explicit GpuWatchdogTaskObserver(GpuWatchdogThread* watchdog);
- virtual ~GpuWatchdogTaskObserver();
+ ~GpuWatchdogTaskObserver() override;
// Implements MessageLoop::TaskObserver.
- virtual void WillProcessTask(
- const base::PendingTask& pending_task) override;
- virtual void DidProcessTask(const base::PendingTask& pending_task) override;
+ void WillProcessTask(const base::PendingTask& pending_task) override;
+ void DidProcessTask(const base::PendingTask& pending_task) override;
private:
GpuWatchdogThread* watchdog_;
};
- virtual ~GpuWatchdogThread();
+ ~GpuWatchdogThread() override;
void OnAcknowledge();
void OnCheck(bool after_suspend);
@@ -67,8 +66,8 @@ class GpuWatchdogThread : public base::Thread,
void OnAddPowerObserver();
// Implement PowerObserver.
- virtual void OnSuspend() override;
- virtual void OnResume() override;
+ void OnSuspend() override;
+ void OnResume() override;
#if defined(OS_WIN)
base::TimeDelta GetWatchedThreadTime();
« no previous file with comments | « content/gpu/gpu_process.h ('k') | content/gpu/in_process_gpu_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698