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

Unified Diff: components/ntp_tiles/ntp_tile.cc

Issue 2341963002: Make NTPTile copyable. (Closed)
Patch Set: 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
« components/ntp_tiles/ntp_tile.h ('K') | « components/ntp_tiles/ntp_tile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_tiles/ntp_tile.cc
diff --git a/components/ntp_tiles/ntp_tile.cc b/components/ntp_tiles/ntp_tile.cc
index 82d16ce450f808b380c5f4f90ecb522e55bdc149..df91380f3f59922217779f1e3e39eadceb0f0b70 100644
--- a/components/ntp_tiles/ntp_tile.cc
+++ b/components/ntp_tiles/ntp_tile.cc
@@ -14,4 +14,13 @@ NTPTile::NTPTile(NTPTile&&) = default;
NTPTile& NTPTile::operator=(NTPTile&&) = default;
+NTPTile NTPTile::Copy() const {
+ NTPTile copy;
+ copy.title = title;
+ copy.url = url;
+ copy.source = source;
+ copy.whitelist_icon_path = whitelist_icon_path;
+ return copy;
+}
+
} // namespace ntp_tiles
« components/ntp_tiles/ntp_tile.h ('K') | « components/ntp_tiles/ntp_tile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698