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

Side by Side Diff: extensions/browser/external_install_info.cc

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 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 #include "extensions/browser/external_install_info.h" 5 #include "extensions/browser/external_install_info.h"
6 6
7 #include "base/version.h" 7 #include "base/version.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 ExternalInstallInfo::ExternalInstallInfo(const std::string& extension_id, 12 ExternalInstallInfo::ExternalInstallInfo(const std::string& extension_id,
13 int creation_flags, 13 int creation_flags,
14 bool mark_acknowledged) 14 bool mark_acknowledged)
15 : extension_id(extension_id), 15 : extension_id(extension_id),
16 creation_flags(creation_flags), 16 creation_flags(creation_flags),
17 mark_acknowledged(mark_acknowledged) {} 17 mark_acknowledged(mark_acknowledged) {}
18 18
19 ExternalInstallInfoFile::ExternalInstallInfoFile( 19 ExternalInstallInfoFile::ExternalInstallInfoFile(
20 const std::string& extension_id, 20 const std::string& extension_id,
21 scoped_ptr<base::Version> version, 21 std::unique_ptr<base::Version> version,
22 const base::FilePath& path, 22 const base::FilePath& path,
23 Manifest::Location crx_location, 23 Manifest::Location crx_location,
24 int creation_flags, 24 int creation_flags,
25 bool mark_acknowledged, 25 bool mark_acknowledged,
26 bool install_immediately) 26 bool install_immediately)
27 : ExternalInstallInfo(extension_id, creation_flags, mark_acknowledged), 27 : ExternalInstallInfo(extension_id, creation_flags, mark_acknowledged),
28 version(std::move(version)), 28 version(std::move(version)),
29 path(path), 29 path(path),
30 crx_location(crx_location), 30 crx_location(crx_location),
31 install_immediately(install_immediately) {} 31 install_immediately(install_immediately) {}
32 32
33 ExternalInstallInfoFile::~ExternalInstallInfoFile() {} 33 ExternalInstallInfoFile::~ExternalInstallInfoFile() {}
34 34
35 ExternalInstallInfoUpdateUrl::ExternalInstallInfoUpdateUrl( 35 ExternalInstallInfoUpdateUrl::ExternalInstallInfoUpdateUrl(
36 const std::string& extension_id, 36 const std::string& extension_id,
37 const std::string& install_parameter, 37 const std::string& install_parameter,
38 scoped_ptr<GURL> update_url, 38 std::unique_ptr<GURL> update_url,
39 Manifest::Location download_location, 39 Manifest::Location download_location,
40 int creation_flags, 40 int creation_flags,
41 bool mark_acknowledged) 41 bool mark_acknowledged)
42 : ExternalInstallInfo(extension_id, creation_flags, mark_acknowledged), 42 : ExternalInstallInfo(extension_id, creation_flags, mark_acknowledged),
43 install_parameter(install_parameter), 43 install_parameter(install_parameter),
44 update_url(std::move(update_url)), 44 update_url(std::move(update_url)),
45 download_location(download_location) {} 45 download_location(download_location) {}
46 46
47 ExternalInstallInfoUpdateUrl::~ExternalInstallInfoUpdateUrl() {} 47 ExternalInstallInfoUpdateUrl::~ExternalInstallInfoUpdateUrl() {}
48 48
49 } // namespace extensions 49 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/external_install_info.h ('k') | extensions/browser/external_provider_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698