| OLD | NEW |
| 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 "chrome/install_static/install_util.h" | 5 #include "chrome/install_static/install_util.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <assert.h> | 8 #include <assert.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 return channel_name; | 305 return channel_name; |
| 306 } | 306 } |
| 307 | 307 |
| 308 } // namespace | 308 } // namespace |
| 309 | 309 |
| 310 bool IsSystemInstall() { | 310 bool IsSystemInstall() { |
| 311 return InstallDetails::Get().system_level(); | 311 return InstallDetails::Get().system_level(); |
| 312 } | 312 } |
| 313 | 313 |
| 314 const wchar_t* GetAppGuid() { |
| 315 return InstallDetails::Get().app_guid(); |
| 316 } |
| 317 |
| 314 bool GetCollectStatsConsent() { | 318 bool GetCollectStatsConsent() { |
| 315 bool enabled = true; | 319 bool enabled = true; |
| 316 | 320 |
| 317 if (ReportingIsEnforcedByPolicy(&enabled)) | 321 if (ReportingIsEnforcedByPolicy(&enabled)) |
| 318 return enabled; | 322 return enabled; |
| 319 | 323 |
| 320 const bool system_install = IsSystemInstall(); | 324 const bool system_install = IsSystemInstall(); |
| 321 | 325 |
| 322 DWORD out_value = 0; | 326 DWORD out_value = 0; |
| 323 | 327 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 case ChannelStrategy::ADDITIONAL_PARAMETERS: | 758 case ChannelStrategy::ADDITIONAL_PARAMETERS: |
| 755 return ChannelFromAdditionalParameters(mode, system_level, from_binaries); | 759 return ChannelFromAdditionalParameters(mode, system_level, from_binaries); |
| 756 case ChannelStrategy::FIXED: | 760 case ChannelStrategy::FIXED: |
| 757 return mode.default_channel_name; | 761 return mode.default_channel_name; |
| 758 } | 762 } |
| 759 | 763 |
| 760 return std::wstring(); | 764 return std::wstring(); |
| 761 } | 765 } |
| 762 | 766 |
| 763 } // namespace install_static | 767 } // namespace install_static |
| OLD | NEW |