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 | 10 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // Chrome Frame ready-mode. | 437 // Chrome Frame ready-mode. |
438 "ready-mode", | 438 "ready-mode", |
439 "ready-mode-opt-in", | 439 "ready-mode-opt-in", |
440 "ready-mode-temp-opt-out", | 440 "ready-mode-temp-opt-out", |
441 "ready-mode-end-temp-opt-out", | 441 "ready-mode-end-temp-opt-out", |
442 // Chrome Frame quick-enable. | 442 // Chrome Frame quick-enable. |
443 "quick-enable-cf", | 443 "quick-enable-cf", |
444 // Installation of Chrome Frame. | 444 // Installation of Chrome Frame. |
445 "chrome-frame", | 445 "chrome-frame", |
446 "migrate-chrome-frame", | 446 "migrate-chrome-frame", |
| 447 // Stand-alone App Launcher. |
| 448 "app-host", |
| 449 "app-launcher", |
447 }; | 450 }; |
448 for (size_t i = 0; i < arraysize(kLegacySwitches); ++i) { | 451 for (size_t i = 0; i < arraysize(kLegacySwitches); ++i) { |
449 if (cmd_line.HasSwitch(kLegacySwitches[i])) | 452 if (cmd_line.HasSwitch(kLegacySwitches[i])) |
450 return true; | 453 return true; |
451 } | 454 } |
452 return false; | 455 return false; |
453 } | 456 } |
454 | 457 |
455 bool IsProcessorSupported() { | 458 bool IsProcessorSupported() { |
456 return base::CPU().has_sse2(); | 459 return base::CPU().has_sse2(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 } | 505 } |
503 | 506 |
504 ScopedTokenPrivilege::~ScopedTokenPrivilege() { | 507 ScopedTokenPrivilege::~ScopedTokenPrivilege() { |
505 if (is_enabled_ && previous_privileges_.PrivilegeCount != 0) { | 508 if (is_enabled_ && previous_privileges_.PrivilegeCount != 0) { |
506 ::AdjustTokenPrivileges(token_.Get(), FALSE, &previous_privileges_, | 509 ::AdjustTokenPrivileges(token_.Get(), FALSE, &previous_privileges_, |
507 sizeof(TOKEN_PRIVILEGES), NULL, NULL); | 510 sizeof(TOKEN_PRIVILEGES), NULL, NULL); |
508 } | 511 } |
509 } | 512 } |
510 | 513 |
511 } // namespace installer | 514 } // namespace installer |
OLD | NEW |