| 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 // NOTE: This code is a legacy utility API for partners to check whether | 5 // NOTE: This code is a legacy utility API for partners to check whether |
| 6 // Chrome can be installed and launched. Recent updates are being made | 6 // Chrome can be installed and launched. Recent updates are being made |
| 7 // to add new functionality. These updates use code from Chromium, the old | 7 // to add new functionality. These updates use code from Chromium, the old |
| 8 // coded against the win32 api directly. If you have an itch to shave a | 8 // coded against the win32 api directly. If you have an itch to shave a |
| 9 // yak, feel free to re-write the old code too. | 9 // yak, feel free to re-write the old code too. |
| 10 | 10 |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 BOOL __stdcall ReactivateChrome(wchar_t* brand_code, | 622 BOOL __stdcall ReactivateChrome(wchar_t* brand_code, |
| 623 int shell_mode, | 623 int shell_mode, |
| 624 DWORD* error_code) { | 624 DWORD* error_code) { |
| 625 BOOL result = FALSE; | 625 BOOL result = FALSE; |
| 626 if (CanOfferReactivation(brand_code, | 626 if (CanOfferReactivation(brand_code, |
| 627 shell_mode, | 627 shell_mode, |
| 628 error_code)) { | 628 error_code)) { |
| 629 if (SetReactivationBrandCode(brand_code, shell_mode)) { | 629 if (SetReactivationBrandCode(brand_code, shell_mode)) { |
| 630 // Currently set this as a best-effort thing. We return TRUE if | 630 // Currently set this as a best-effort thing. We return TRUE if |
| 631 // reactivation succeeded regardless of the experiment label result. | 631 // reactivation succeeded regardless of the experiment label result. |
| 632 SetOmahaExperimentLabel(brand_code, shell_mode); | 632 SetGCAPIOmahaExperimentLabel(brand_code, shell_mode); |
| 633 | 633 |
| 634 result = TRUE; | 634 result = TRUE; |
| 635 } else { | 635 } else { |
| 636 if (error_code) | 636 if (error_code) |
| 637 *error_code = REACTIVATE_ERROR_REACTIVATION_FAILED; | 637 *error_code = REACTIVATE_ERROR_REACTIVATION_FAILED; |
| 638 } | 638 } |
| 639 } | 639 } |
| 640 | 640 |
| 641 return result; | 641 return result; |
| 642 } | 642 } |
| 643 | |
| OLD | NEW |