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

Side by Side Diff: chrome/browser/history/url_index_private_data.cc

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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/history/url_index_private_data.h" 5 #include "chrome/browser/history/url_index_private_data.h"
6 6
7 #include <functional> 7 #include <functional>
8 #include <iterator> 8 #include <iterator>
9 #include <limits> 9 #include <limits>
10 #include <numeric> 10 #include <numeric>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // HistoryDBTask used to update the recent visit data for a particular 79 // HistoryDBTask used to update the recent visit data for a particular
80 // row from the history database. 80 // row from the history database.
81 class UpdateRecentVisitsFromHistoryDBTask : public HistoryDBTask { 81 class UpdateRecentVisitsFromHistoryDBTask : public HistoryDBTask {
82 public: 82 public:
83 explicit UpdateRecentVisitsFromHistoryDBTask( 83 explicit UpdateRecentVisitsFromHistoryDBTask(
84 URLIndexPrivateData* private_data, 84 URLIndexPrivateData* private_data,
85 URLID url_id); 85 URLID url_id);
86 86
87 virtual bool RunOnDBThread(HistoryBackend* backend, 87 virtual bool RunOnDBThread(HistoryBackend* backend,
88 history::HistoryDatabase* db) OVERRIDE; 88 history::HistoryDatabase* db) override;
89 virtual void DoneRunOnMainThread() OVERRIDE; 89 virtual void DoneRunOnMainThread() override;
90 90
91 private: 91 private:
92 virtual ~UpdateRecentVisitsFromHistoryDBTask(); 92 virtual ~UpdateRecentVisitsFromHistoryDBTask();
93 93
94 // The URLIndexPrivateData that gets updated after the historyDB 94 // The URLIndexPrivateData that gets updated after the historyDB
95 // task returns. 95 // task returns.
96 URLIndexPrivateData* private_data_; 96 URLIndexPrivateData* private_data_;
97 // The ID of the URL to get visits for and then update. 97 // The ID of the URL to get visits for and then update.
98 URLID url_id_; 98 URLID url_id_;
99 // Whether fetching the recent visits for the URL succeeded. 99 // Whether fetching the recent visits for the URL succeeded.
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 // recently visited (within the last 12/24 hours) as highly important. Get 1340 // recently visited (within the last 12/24 hours) as highly important. Get
1341 // input from mpearson. 1341 // input from mpearson.
1342 if (r1.typed_count() != r2.typed_count()) 1342 if (r1.typed_count() != r2.typed_count())
1343 return (r1.typed_count() > r2.typed_count()); 1343 return (r1.typed_count() > r2.typed_count());
1344 if (r1.visit_count() != r2.visit_count()) 1344 if (r1.visit_count() != r2.visit_count())
1345 return (r1.visit_count() > r2.visit_count()); 1345 return (r1.visit_count() > r2.visit_count());
1346 return (r1.last_visit() > r2.last_visit()); 1346 return (r1.last_visit() > r2.last_visit());
1347 } 1347 }
1348 1348
1349 } // namespace history 1349 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/typed_url_syncable_service_unittest.cc ('k') | chrome/browser/history/visit_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698