OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 defines specific implementation of BrowserDistribution class for | 5 // This file defines specific implementation of BrowserDistribution class for |
6 // Google Chrome. | 6 // Google Chrome. |
7 | 7 |
8 #include "chrome/installer/util/google_chrome_distribution.h" | 8 #include "chrome/installer/util/google_chrome_distribution.h" |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 | 679 |
680 if (outcome != kToastExpUninstallGroup) | 680 if (outcome != kToastExpUninstallGroup) |
681 return; | 681 return; |
682 | 682 |
683 // The user wants to uninstall. This is a best effort operation. Note that | 683 // The user wants to uninstall. This is a best effort operation. Note that |
684 // we waited for chrome to exit so the uninstall would not detect chrome | 684 // we waited for chrome to exit so the uninstall would not detect chrome |
685 // running. | 685 // running. |
686 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( | 686 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( |
687 installer::switches::kSystemLevelToast); | 687 installer::switches::kSystemLevelToast); |
688 | 688 |
689 std::wstring cmd(InstallUtil::GetChromeUninstallCmd( | 689 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast, |
690 system_level_toast, this)); | 690 GetType())); |
691 | |
692 base::LaunchApp(cmd, false, false, NULL); | 691 base::LaunchApp(cmd, false, false, NULL); |
693 } | 692 } |
694 #endif | 693 #endif |
OLD | NEW |