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

Side by Side Diff: chrome/browser/component_updater/caps_installer_win.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/component_updater/caps_installer_win.h" 5 #include "chrome/browser/component_updater/caps_installer_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <utility>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/command_line.h" 12 #include "base/command_line.h"
12 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
13 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
14 #include "base/macros.h" 15 #include "base/macros.h"
15 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
16 #include "base/path_service.h" 17 #include "base/path_service.h"
17 #include "base/process/launch.h" 18 #include "base/process/launch.h"
18 #include "base/threading/worker_pool.h" 19 #include "base/threading/worker_pool.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 std::string GetName() const override { return "Chrome Crash Service"; } 109 std::string GetName() const override { return "Chrome Crash Service"; }
109 }; 110 };
110 111
111 } // namespace 112 } // namespace
112 113
113 void RegisterCAPSComponent(ComponentUpdateService* cus) { 114 void RegisterCAPSComponent(ComponentUpdateService* cus) {
114 // The component updater takes ownership of |installer|. 115 // The component updater takes ownership of |installer|.
115 scoped_ptr<ComponentInstallerTraits> traits( 116 scoped_ptr<ComponentInstallerTraits> traits(
116 new CAPSInstallerTraits()); 117 new CAPSInstallerTraits());
117 DefaultComponentInstaller* installer = 118 DefaultComponentInstaller* installer =
118 new DefaultComponentInstaller(traits.Pass()); 119 new DefaultComponentInstaller(std::move(traits));
119 installer->Register(cus, base::Closure()); 120 installer->Register(cus, base::Closure());
120 } 121 }
121 122
122 } // namespace component_updater 123 } // namespace component_updater
OLDNEW
« no previous file with comments | « base/win/scoped_handle_unittest.cc ('k') | chrome/browser/component_updater/sw_reporter_installer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698