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

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

Issue 220193005: Add RLZ Access points for the app launcher. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 8 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/browser/rlz/rlz_unittest.cc ('k') | rlz/lib/lib_values.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 defines the methods useful for uninstalling Chrome. 5 // This file defines the methods useful for uninstalling Chrome.
6 6
7 #include "chrome/installer/setup/uninstall.h" 7 #include "chrome/installer/setup/uninstall.h"
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 const installer::InstallerState& installer_state) { 162 const installer::InstallerState& installer_state) {
163 scoped_ptr<WorkItemList> work_items(WorkItem::CreateNoRollbackWorkItemList()); 163 scoped_ptr<WorkItemList> work_items(WorkItem::CreateNoRollbackWorkItemList());
164 AddDeleteOldIELowRightsPolicyWorkItems(installer_state, work_items.get()); 164 AddDeleteOldIELowRightsPolicyWorkItems(installer_state, work_items.get());
165 work_items->Do(); 165 work_items->Do();
166 installer::RefreshElevationPolicy(); 166 installer::RefreshElevationPolicy();
167 } 167 }
168 168
169 void ClearRlzProductState() { 169 void ClearRlzProductState() {
170 const rlz_lib::AccessPoint points[] = {rlz_lib::CHROME_OMNIBOX, 170 const rlz_lib::AccessPoint points[] = {rlz_lib::CHROME_OMNIBOX,
171 rlz_lib::CHROME_HOME_PAGE, 171 rlz_lib::CHROME_HOME_PAGE,
172 rlz_lib::CHROME_APP_LIST,
172 rlz_lib::NO_ACCESS_POINT}; 173 rlz_lib::NO_ACCESS_POINT};
173 174
174 rlz_lib::ClearProductState(rlz_lib::CHROME, points); 175 rlz_lib::ClearProductState(rlz_lib::CHROME, points);
175 176
176 // If chrome has been reactivated, clear all events for this brand as well. 177 // If chrome has been reactivated, clear all events for this brand as well.
177 base::string16 reactivation_brand_wide; 178 base::string16 reactivation_brand_wide;
178 if (GoogleUpdateSettings::GetReactivationBrand(&reactivation_brand_wide)) { 179 if (GoogleUpdateSettings::GetReactivationBrand(&reactivation_brand_wide)) {
179 std::string reactivation_brand(base::UTF16ToASCII(reactivation_brand_wide)); 180 std::string reactivation_brand(base::UTF16ToASCII(reactivation_brand_wide));
180 rlz_lib::SupplementaryBranding branding(reactivation_brand.c_str()); 181 rlz_lib::SupplementaryBranding branding(reactivation_brand.c_str());
181 rlz_lib::ClearProductState(rlz_lib::CHROME, points); 182 rlz_lib::ClearProductState(rlz_lib::CHROME, points);
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 // If we need a reboot to continue, schedule the parent directories for 1435 // If we need a reboot to continue, schedule the parent directories for
1435 // deletion unconditionally. If they are not empty, the session manager 1436 // deletion unconditionally. If they are not empty, the session manager
1436 // will not delete them on reboot. 1437 // will not delete them on reboot.
1437 ScheduleParentAndGrandparentForDeletion(target_path); 1438 ScheduleParentAndGrandparentForDeletion(target_path);
1438 } else if (DeleteChromeDirectoriesIfEmpty(target_path) == DELETE_FAILED) { 1439 } else if (DeleteChromeDirectoriesIfEmpty(target_path) == DELETE_FAILED) {
1439 *uninstall_status = UNINSTALL_FAILED; 1440 *uninstall_status = UNINSTALL_FAILED;
1440 } 1441 }
1441 } 1442 }
1442 1443
1443 } // namespace installer 1444 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/browser/rlz/rlz_unittest.cc ('k') | rlz/lib/lib_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698