summaryrefslogtreecommitdiffstats
path: root/components/suggestions
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-21 04:24:56 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-21 11:25:34 +0000
commit00ea022b81af00857b352bae68d4ba2eb3e1493b (patch)
treeb5e3e536a25f154ab5410d611736832c11b2cfad /components/suggestions
parent0b0885ca539071e7864061fde54c7345a0fd2aae (diff)
downloadchromium_src-00ea022b81af00857b352bae68d4ba2eb3e1493b.zip
chromium_src-00ea022b81af00857b352bae68d4ba2eb3e1493b.tar.gz
chromium_src-00ea022b81af00857b352bae68d4ba2eb3e1493b.tar.bz2
Standardize usage of virtual/override/final in components/
BUG=417463 TBR=blundell@chromium.org Review URL: https://codereview.chromium.org/666133002 Cr-Commit-Position: refs/heads/master@{#300456}
Diffstat (limited to 'components/suggestions')
-rw-r--r--components/suggestions/image_manager.h4
-rw-r--r--components/suggestions/suggestions_service.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/components/suggestions/image_manager.h b/components/suggestions/image_manager.h
index 57ead85..1f7e392 100644
--- a/components/suggestions/image_manager.h
+++ b/components/suggestions/image_manager.h
@@ -40,7 +40,7 @@ class ImageManager : public ImageFetcherDelegate {
ImageManager(scoped_ptr<ImageFetcher> image_fetcher,
scoped_ptr<leveldb_proto::ProtoDatabase<ImageData> > database,
const base::FilePath& database_dir);
- virtual ~ImageManager();
+ ~ImageManager() override;
virtual void Initialize(const SuggestionsProfile& suggestions);
@@ -51,7 +51,7 @@ class ImageManager : public ImageFetcherDelegate {
protected:
// Perform additional tasks when an image has been fetched.
- virtual void OnImageFetched(const GURL& url, const SkBitmap* bitmap) override;
+ void OnImageFetched(const GURL& url, const SkBitmap* bitmap) override;
private:
friend class MockImageManager;
diff --git a/components/suggestions/suggestions_service.h b/components/suggestions/suggestions_service.h
index ea385e1..2203370 100644
--- a/components/suggestions/suggestions_service.h
+++ b/components/suggestions/suggestions_service.h
@@ -57,7 +57,7 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
scoped_ptr<SuggestionsStore> suggestions_store,
scoped_ptr<ImageManager> thumbnail_manager,
scoped_ptr<BlacklistStore> blacklist_store);
- virtual ~SuggestionsService();
+ ~SuggestionsService() override;
// Whether this service is enabled.
static bool IsEnabled();
@@ -124,10 +124,10 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
// net::URLFetcherDelegate implementation.
// Called when fetch request completes. Parses the received suggestions data,
// and dispatches them to callbacks stored in queue.
- virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
+ void OnURLFetchComplete(const net::URLFetcher* source) override;
// KeyedService implementation.
- virtual void Shutdown() override;
+ void Shutdown() override;
// Load the cached suggestions and service the requestors with them.
void ServeFromCache();