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

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

Issue 2618583005: Remove support for non-browser products from InstallationState and ProductState. (Closed)
Patch Set: fix Created 3 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/installer/util/user_experiment.h" 5 #include "chrome/installer/util/user_experiment.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <sddl.h> 8 #include <sddl.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 SetClient(experiment_group + outcome, true); 523 SetClient(experiment_group + outcome, true);
524 524
525 if (outcome != kToastExpUninstallGroup) 525 if (outcome != kToastExpUninstallGroup)
526 return; 526 return;
527 // The user wants to uninstall. This is a best effort operation. Note that 527 // The user wants to uninstall. This is a best effort operation. Note that
528 // we waited for chrome to exit so the uninstall would not detect chrome 528 // we waited for chrome to exit so the uninstall would not detect chrome
529 // running. 529 // running.
530 bool system_level_toast = base::CommandLine::ForCurrentProcess()->HasSwitch( 530 bool system_level_toast = base::CommandLine::ForCurrentProcess()->HasSwitch(
531 switches::kSystemLevelToast); 531 switches::kSystemLevelToast);
532 532
533 base::CommandLine cmd(InstallUtil::GetChromeUninstallCmd( 533 base::CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast));
534 system_level_toast, product.distribution()->GetType()));
535 base::LaunchProcess(cmd, base::LaunchOptions()); 534 base::LaunchProcess(cmd, base::LaunchOptions());
536 } 535 }
537 536
538 } // namespace installer 537 } // namespace installer
OLDNEW
« chrome/installer/util/product_unittest.cc ('K') | « chrome/installer/util/product_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698