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

Side by Side Diff: components/ntp_tiles/ntp_tile.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | components/ntp_tiles/ntp_tile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_NTP_TILES_NTP_TILE_H_ 5 #ifndef COMPONENTS_NTP_TILES_NTP_TILE_H_
6 #define COMPONENTS_NTP_TILES_NTP_TILE_H_ 6 #define COMPONENTS_NTP_TILES_NTP_TILE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Only valid for source == WHITELIST (empty otherwise). 37 // Only valid for source == WHITELIST (empty otherwise).
38 base::FilePath whitelist_icon_path; 38 base::FilePath whitelist_icon_path;
39 39
40 NTPTile(); 40 NTPTile();
41 ~NTPTile(); 41 ~NTPTile();
42 42
43 NTPTile(NTPTile&&); 43 NTPTile(NTPTile&&);
44 NTPTile& operator=(NTPTile&&); 44 NTPTile& operator=(NTPTile&&);
45 45
46 NTPTile Copy() const;
Marc Treib 2016/09/15 09:10:27 Hm, at this point, we might as well just remove th
sfiera 2016/09/21 08:56:28 Sure, done. (I think I was channeling google3's ex
Marc Treib 2016/09/21 08:58:06 We mostly have that in Chromium as well, but in th
sfiera 2016/09/21 09:12:58 I had to add the default copy constructor explicit
47
46 private: 48 private:
47 DISALLOW_COPY_AND_ASSIGN(NTPTile); 49 DISALLOW_COPY_AND_ASSIGN(NTPTile);
48 }; 50 };
49 51
50 using NTPTilesVector = std::vector<NTPTile>; 52 using NTPTilesVector = std::vector<NTPTile>;
51 53
52 } // namespace ntp_tiles 54 } // namespace ntp_tiles
53 55
54 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_ 56 #endif // COMPONENTS_NTP_TILES_NTP_TILE_H_
OLDNEW
« no previous file with comments | « no previous file | components/ntp_tiles/ntp_tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698