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

Side by Side Diff: components/component_updater/component_updater_service.cc

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: . Created 5 years 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/component_updater/component_updater_service.h" 5 #include "components/component_updater/component_updater_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 /////////////////////////////////////////////////////////////////////////////// 345 ///////////////////////////////////////////////////////////////////////////////
346 346
347 // The component update factory. Using the component updater as a singleton 347 // The component update factory. Using the component updater as a singleton
348 // is the job of the browser process. 348 // is the job of the browser process.
349 // TODO(sorin): consider making this a singleton. 349 // TODO(sorin): consider making this a singleton.
350 scoped_ptr<ComponentUpdateService> ComponentUpdateServiceFactory( 350 scoped_ptr<ComponentUpdateService> ComponentUpdateServiceFactory(
351 const scoped_refptr<Configurator>& config) { 351 const scoped_refptr<Configurator>& config) {
352 DCHECK(config); 352 DCHECK(config);
353 auto update_client = update_client::UpdateClientFactory(config); 353 auto update_client = update_client::UpdateClientFactory(config);
354 return scoped_ptr<ComponentUpdateService>( 354 return scoped_ptr<ComponentUpdateService>(
355 new CrxUpdateService(config, update_client.Pass())); 355 new CrxUpdateService(config, std::move(update_client)));
356 } 356 }
357 357
358 } // namespace component_updater 358 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698