| 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 15 matching lines...) Expand all Loading... |
| 26 #include "base/string_number_conversions.h" | 26 #include "base/string_number_conversions.h" |
| 27 #include "base/time.h" | 27 #include "base/time.h" |
| 28 #include "base/win/registry.h" | 28 #include "base/win/registry.h" |
| 29 #include "base/win/scoped_com_initializer.h" | 29 #include "base/win/scoped_com_initializer.h" |
| 30 #include "base/win/scoped_comptr.h" | 30 #include "base/win/scoped_comptr.h" |
| 31 #include "base/win/scoped_handle.h" | 31 #include "base/win/scoped_handle.h" |
| 32 #include "chrome/installer/gcapi/gcapi_omaha_experiment.h" | 32 #include "chrome/installer/gcapi/gcapi_omaha_experiment.h" |
| 33 #include "chrome/installer/gcapi/gcapi_reactivation.h" | 33 #include "chrome/installer/gcapi/gcapi_reactivation.h" |
| 34 #include "chrome/installer/util/google_update_constants.h" | 34 #include "chrome/installer/util/google_update_constants.h" |
| 35 #include "chrome/installer/util/util_constants.h" | 35 #include "chrome/installer/util/util_constants.h" |
| 36 | 36 #include "google_update/google_update_idl.h" |
| 37 #include "google_update_idl.h" // NOLINT | |
| 38 | 37 |
| 39 using base::Time; | 38 using base::Time; |
| 40 using base::TimeDelta; | 39 using base::TimeDelta; |
| 41 using base::win::RegKey; | 40 using base::win::RegKey; |
| 42 using base::win::ScopedCOMInitializer; | 41 using base::win::ScopedCOMInitializer; |
| 43 using base::win::ScopedComPtr; | 42 using base::win::ScopedComPtr; |
| 44 using base::win::ScopedHandle; | 43 using base::win::ScopedHandle; |
| 45 | 44 |
| 46 namespace { | 45 namespace { |
| 47 | 46 |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 result = TRUE; | 606 result = TRUE; |
| 608 } else { | 607 } else { |
| 609 if (error_code) | 608 if (error_code) |
| 610 *error_code = REACTIVATE_ERROR_REACTIVATION_FAILED; | 609 *error_code = REACTIVATE_ERROR_REACTIVATION_FAILED; |
| 611 } | 610 } |
| 612 } | 611 } |
| 613 | 612 |
| 614 return result; | 613 return result; |
| 615 } | 614 } |
| 616 | 615 |
| OLD | NEW |