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

Side by Side Diff: chrome/installer/util/google_chrome_distribution_dummy.cc

Issue 1878313003: Convert //chrome/installer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert decompress.cc in mini_installer. 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file defines dummy implementation of several functions from the 5 // This file defines dummy implementation of several functions from the
6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit 6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit
7 // Windows Chrome binary to build successfully. Since this binary is only used 7 // Windows Chrome binary to build successfully. Since this binary is only used
8 // for Native Client support, most of the install/uninstall functionality is not 8 // for Native Client support, most of the install/uninstall functionality is not
9 // necessary there. 9 // necessary there.
10 10
11 #include "chrome/installer/util/google_chrome_distribution.h" 11 #include "chrome/installer/util/google_chrome_distribution.h"
12 12
13 #include <windows.h> 13 #include <windows.h>
14 14
15 #include <utility> 15 #include <utility>
16 16
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "chrome/installer/util/app_registration_data.h" 20 #include "chrome/installer/util/app_registration_data.h"
21 #include "chrome/installer/util/non_updating_app_registration_data.h" 21 #include "chrome/installer/util/non_updating_app_registration_data.h"
22 22
23 GoogleChromeDistribution::GoogleChromeDistribution() 23 GoogleChromeDistribution::GoogleChromeDistribution()
24 : BrowserDistribution( 24 : BrowserDistribution(
25 CHROME_BROWSER, 25 CHROME_BROWSER,
26 scoped_ptr<AppRegistrationData>( 26 std::unique_ptr<AppRegistrationData>(
27 new NonUpdatingAppRegistrationData(base::string16()))) { 27 new NonUpdatingAppRegistrationData(base::string16()))) {}
28 }
29 28
30 GoogleChromeDistribution::GoogleChromeDistribution( 29 GoogleChromeDistribution::GoogleChromeDistribution(
31 scoped_ptr<AppRegistrationData> app_reg_data) 30 std::unique_ptr<AppRegistrationData> app_reg_data)
32 : BrowserDistribution(CHROME_BROWSER, std::move(app_reg_data)) {} 31 : BrowserDistribution(CHROME_BROWSER, std::move(app_reg_data)) {}
33 32
34 void GoogleChromeDistribution::DoPostUninstallOperations( 33 void GoogleChromeDistribution::DoPostUninstallOperations(
35 const Version& version, 34 const Version& version,
36 const base::FilePath& local_data_path, 35 const base::FilePath& local_data_path,
37 const base::string16& distribution_data) { 36 const base::string16& distribution_data) {
38 } 37 }
39 38
40 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() { 39 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() {
41 return base::string16(); 40 return base::string16();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 installer::InstallStatus install_status) { 106 installer::InstallStatus install_status) {
108 } 107 }
109 108
110 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { 109 bool GoogleChromeDistribution::ShouldSetExperimentLabels() {
111 return false; 110 return false;
112 } 111 }
113 112
114 bool GoogleChromeDistribution::HasUserExperiments() { 113 bool GoogleChromeDistribution::HasUserExperiments() {
115 return false; 114 return false;
116 } 115 }
OLDNEW
« no previous file with comments | « chrome/installer/util/google_chrome_distribution.cc ('k') | chrome/installer/util/google_chrome_sxs_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698