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

Side by Side Diff: components/drive/drive_app_registry.cc

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/drive/drive_app_registry.h" 5 #include "components/drive/drive_app_registry.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool is_removable) 64 bool is_removable)
65 : app_id(app_id), 65 : app_id(app_id),
66 product_id(product_id), 66 product_id(product_id),
67 app_icons(app_icons), 67 app_icons(app_icons),
68 document_icons(document_icons), 68 document_icons(document_icons),
69 app_name(app_name), 69 app_name(app_name),
70 create_url(create_url), 70 create_url(create_url),
71 is_removable(is_removable) { 71 is_removable(is_removable) {
72 } 72 }
73 73
74 DriveAppInfo::DriveAppInfo(const DriveAppInfo& other) = default;
75
74 DriveAppInfo::~DriveAppInfo() { 76 DriveAppInfo::~DriveAppInfo() {
75 } 77 }
76 78
77 DriveAppRegistry::DriveAppRegistry(DriveServiceInterface* drive_service) 79 DriveAppRegistry::DriveAppRegistry(DriveServiceInterface* drive_service)
78 : drive_service_(drive_service), 80 : drive_service_(drive_service),
79 is_updating_(false), 81 is_updating_(false),
80 weak_ptr_factory_(this) { 82 weak_ptr_factory_(this) {
81 } 83 }
82 84
83 DriveAppRegistry::~DriveAppRegistry() { 85 DriveAppRegistry::~DriveAppRegistry() {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 241
240 // Go forward while the size is larger or equal to preferred_size. 242 // Go forward while the size is larger or equal to preferred_size.
241 size_t i = 1; 243 size_t i = 1;
242 while (i < sorted_icons.size() && sorted_icons[i].first >= preferred_size) 244 while (i < sorted_icons.size() && sorted_icons[i].first >= preferred_size)
243 ++i; 245 ++i;
244 return sorted_icons[i - 1].second; 246 return sorted_icons[i - 1].second;
245 } 247 }
246 248
247 } // namespace util 249 } // namespace util
248 } // namespace drive 250 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698