Standardize usage of virtual/override/final in apps/
commit2f5be41e6ddc25cab9804910999255b539ecff1e
authordcheng <dcheng@chromium.org>
Wed, 22 Oct 2014 01:46:08 +0000 (21 18:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 04:03:37 +0000 (22 04:03 +0000)
treed49f963dabf234044e35ceb6b36f44dee1e8ea5f
parent60f67cb9cce431ac2d56e96448bc1b5090399d52
Standardize usage of virtual/override/final in apps/

The Google C++ style guide states:

  Explicitly annotate overrides of virtual functions or virtual
  destructors with an override or (less frequently) final specifier.
  Older (pre-C++11) code will use the virtual keyword as an inferior
  alternative annotation. For clarity, use exactly one of override,
  final, or virtual when declaring an override.

To better conform to these guidelines, the following constructs have
been rewritten:

- if a base class has a virtual destructor, then:
    virtual ~Foo();                   ->  ~Foo() override;
- virtual void Foo() override;        ->  void Foo() override;
- virtual void Foo() override final;  ->  void Foo() final;

This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.

BUG=417463
R=scheib@chromium.org

Review URL: https://codereview.chromium.org/666213002

Cr-Commit-Position: refs/heads/master@{#300609}
apps/app_lifetime_monitor.h
apps/app_lifetime_monitor_factory.h
apps/app_load_service.h
apps/app_load_service_factory.h
apps/app_restore_service.h
apps/app_restore_service_factory.h
apps/custom_launcher_page_contents.h
apps/load_and_launch_browsertest.cc
apps/saved_files_service.h
apps/saved_files_service_factory.h