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

Side by Side Diff: chrome/installer/util/google_chrome_distribution.cc

Issue 6490008: Fix user-to-system-level installation delegation. This looks to have been bro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698