| OLD | NEW |
| 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 #include "chrome/installer/util/chrome_app_host_operations.h" | 5 #include "chrome/installer/util/chrome_app_host_operations.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #if defined(GOOGLE_CHROME_BUILD) | 84 #if defined(GOOGLE_CHROME_BUILD) |
| 85 DCHECK(channel_info); | 85 DCHECK(channel_info); |
| 86 return channel_info->SetAppLauncher(set); | 86 return channel_info->SetAppLauncher(set); |
| 87 #else | 87 #else |
| 88 return false; | 88 return false; |
| 89 #endif | 89 #endif |
| 90 } | 90 } |
| 91 | 91 |
| 92 bool ChromeAppHostOperations::ShouldCreateUninstallEntry( | 92 bool ChromeAppHostOperations::ShouldCreateUninstallEntry( |
| 93 const std::set<string16>& options) const { | 93 const std::set<string16>& options) const { |
| 94 return true; | 94 return false; |
| 95 } | 95 } |
| 96 | 96 |
| 97 void ChromeAppHostOperations::AddDefaultShortcutProperties( | 97 void ChromeAppHostOperations::AddDefaultShortcutProperties( |
| 98 BrowserDistribution* dist, | 98 BrowserDistribution* dist, |
| 99 const base::FilePath& target_exe, | 99 const base::FilePath& target_exe, |
| 100 ShellUtil::ShortcutProperties* properties) const { | 100 ShellUtil::ShortcutProperties* properties) const { |
| 101 if (!properties->has_target()) | 101 if (!properties->has_target()) |
| 102 properties->set_target(target_exe); | 102 properties->set_target(target_exe); |
| 103 | 103 |
| 104 if (!properties->has_arguments()) { | 104 if (!properties->has_arguments()) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 121 const base::FilePath& setup_path, | 121 const base::FilePath& setup_path, |
| 122 const std::set<string16>& options, | 122 const std::set<string16>& options, |
| 123 InstallStatus status, | 123 InstallStatus status, |
| 124 bool system_level) const { | 124 bool system_level) const { |
| 125 // No experiments yet. If adding some in the future, need to have | 125 // No experiments yet. If adding some in the future, need to have |
| 126 // ChromeAppHostDistribution::HasUserExperiments() return true. | 126 // ChromeAppHostDistribution::HasUserExperiments() return true. |
| 127 NOTREACHED(); | 127 NOTREACHED(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace installer | 130 } // namespace installer |
| OLD | NEW |