Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: chrome/installer/setup/setup_util.cc

Issue 811283002: [Installer] Cleaning up dead code for App Launcher / App Host installs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment fix. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/setup/uninstall.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/setup/uninstall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698