| 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 // This file declares util functions for setup project. | 5 // This file declares util functions for setup project. |
| 6 | 6 |
| 7 #include "chrome/installer/setup/setup_util.h" | 7 #include "chrome/installer/setup/setup_util.h" |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "base/win/windows_version.h" | 29 #include "base/win/windows_version.h" |
| 30 #include "chrome/installer/setup/setup_constants.h" | 30 #include "chrome/installer/setup/setup_constants.h" |
| 31 #include "chrome/installer/util/app_registration_data.h" | 31 #include "chrome/installer/util/app_registration_data.h" |
| 32 #include "chrome/installer/util/google_update_constants.h" | 32 #include "chrome/installer/util/google_update_constants.h" |
| 33 #include "chrome/installer/util/installation_state.h" | 33 #include "chrome/installer/util/installation_state.h" |
| 34 #include "chrome/installer/util/installer_state.h" | 34 #include "chrome/installer/util/installer_state.h" |
| 35 #include "chrome/installer/util/master_preferences.h" | 35 #include "chrome/installer/util/master_preferences.h" |
| 36 #include "chrome/installer/util/master_preferences_constants.h" | 36 #include "chrome/installer/util/master_preferences_constants.h" |
| 37 #include "chrome/installer/util/util_constants.h" | 37 #include "chrome/installer/util/util_constants.h" |
| 38 #include "courgette/courgette.h" | 38 #include "courgette/courgette.h" |
| 39 #include "courgette/third_party/bsdiff.h" | 39 #include "courgette/third_party/bsdiff/bsdiff.h" |
| 40 #include "third_party/bspatch/mbspatch.h" | 40 #include "third_party/bspatch/mbspatch.h" |
| 41 | 41 |
| 42 namespace installer { | 42 namespace installer { |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 | 45 |
| 46 // Returns true if product |type| cam be meaningfully installed without the | 46 // Returns true if product |type| cam be meaningfully installed without the |
| 47 // --multi-install flag. | 47 // --multi-install flag. |
| 48 bool SupportsSingleInstall(BrowserDistribution::Type type) { | 48 bool SupportsSingleInstall(BrowserDistribution::Type type) { |
| 49 return (type == BrowserDistribution::CHROME_BROWSER || | 49 return (type == BrowserDistribution::CHROME_BROWSER || |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 } | 584 } |
| 585 | 585 |
| 586 ScopedTokenPrivilege::~ScopedTokenPrivilege() { | 586 ScopedTokenPrivilege::~ScopedTokenPrivilege() { |
| 587 if (is_enabled_ && previous_privileges_.PrivilegeCount != 0) { | 587 if (is_enabled_ && previous_privileges_.PrivilegeCount != 0) { |
| 588 ::AdjustTokenPrivileges(token_.Get(), FALSE, &previous_privileges_, | 588 ::AdjustTokenPrivileges(token_.Get(), FALSE, &previous_privileges_, |
| 589 sizeof(TOKEN_PRIVILEGES), NULL, NULL); | 589 sizeof(TOKEN_PRIVILEGES), NULL, NULL); |
| 590 } | 590 } |
| 591 } | 591 } |
| 592 | 592 |
| 593 } // namespace installer | 593 } // namespace installer |
| OLD | NEW |