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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc

Issue 2368583002: [NTP Snippets] Cleanups from clang-tidy (Closed)
Patch Set: rebase Created 4 years, 3 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
Index: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
index 6084f12f197de09d17eca77717522e336254984f..22dd7ede33d31beaee5f367659786e8f54f46c57 100644
--- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
+++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
@@ -20,8 +20,8 @@ const size_t kMaxSuggestionsCount = 10;
} // namespace
// TODO(vitaliii): remove when Physical Web C++ interface is provided.
-UrlInfo::UrlInfo() {}
-UrlInfo::~UrlInfo() {}
+UrlInfo::UrlInfo() = default;
+UrlInfo::~UrlInfo() = default;
UrlInfo::UrlInfo(const UrlInfo& other) = default;
PhysicalWebPageSuggestionsProvider::PhysicalWebPageSuggestionsProvider(
@@ -34,7 +34,8 @@ PhysicalWebPageSuggestionsProvider::PhysicalWebPageSuggestionsProvider(
observer->OnCategoryStatusChanged(this, provided_category_, category_status_);
}
-PhysicalWebPageSuggestionsProvider::~PhysicalWebPageSuggestionsProvider() {}
+PhysicalWebPageSuggestionsProvider::~PhysicalWebPageSuggestionsProvider() =
+ default;
void PhysicalWebPageSuggestionsProvider::OnDisplayableUrlsChanged(
const std::vector<UrlInfo>& urls) {
« no previous file with comments | « components/ntp_snippets/offline_pages/offline_page_proxy.cc ('k') | components/ntp_snippets/request_throttler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698