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

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

Issue 12314090: Add utf_string_conversions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void ClearRlzProductState() { 184 void ClearRlzProductState() {
185 const rlz_lib::AccessPoint points[] = {rlz_lib::CHROME_OMNIBOX, 185 const rlz_lib::AccessPoint points[] = {rlz_lib::CHROME_OMNIBOX,
186 rlz_lib::CHROME_HOME_PAGE, 186 rlz_lib::CHROME_HOME_PAGE,
187 rlz_lib::NO_ACCESS_POINT}; 187 rlz_lib::NO_ACCESS_POINT};
188 188
189 rlz_lib::ClearProductState(rlz_lib::CHROME, points); 189 rlz_lib::ClearProductState(rlz_lib::CHROME, points);
190 190
191 // If chrome has been reactivated, clear all events for this brand as well. 191 // If chrome has been reactivated, clear all events for this brand as well.
192 string16 reactivation_brand_wide; 192 string16 reactivation_brand_wide;
193 if (GoogleUpdateSettings::GetReactivationBrand(&reactivation_brand_wide)) { 193 if (GoogleUpdateSettings::GetReactivationBrand(&reactivation_brand_wide)) {
194 std::string reactivation_brand(WideToASCII(reactivation_brand_wide)); 194 std::string reactivation_brand(base::WideToASCII(reactivation_brand_wide));
195 rlz_lib::SupplementaryBranding branding(reactivation_brand.c_str()); 195 rlz_lib::SupplementaryBranding branding(reactivation_brand.c_str());
196 rlz_lib::ClearProductState(rlz_lib::CHROME, points); 196 rlz_lib::ClearProductState(rlz_lib::CHROME, points);
197 } 197 }
198 } 198 }
199 199
200 // Decides whether setup.exe and the installer archive should be removed based 200 // Decides whether setup.exe and the installer archive should be removed based
201 // on the original and installer states: 201 // on the original and installer states:
202 // * non-multi product being uninstalled: remove both 202 // * non-multi product being uninstalled: remove both
203 // * any multi product left besides App Host: keep both 203 // * any multi product left besides App Host: keep both
204 // * only App Host left: keep setup.exe 204 // * only App Host left: keep setup.exe
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 // deletion unconditionally. If they are not empty, the session manager 1419 // deletion unconditionally. If they are not empty, the session manager
1420 // will not delete them on reboot. 1420 // will not delete them on reboot.
1421 ScheduleParentAndGrandparentForDeletion(target_path); 1421 ScheduleParentAndGrandparentForDeletion(target_path);
1422 } else if (DeleteApplicationProductAndVendorDirectories(target_path) == 1422 } else if (DeleteApplicationProductAndVendorDirectories(target_path) ==
1423 installer::DELETE_FAILED) { 1423 installer::DELETE_FAILED) {
1424 *uninstall_status = installer::UNINSTALL_FAILED; 1424 *uninstall_status = installer::UNINSTALL_FAILED;
1425 } 1425 }
1426 } 1426 }
1427 1427
1428 } // namespace installer 1428 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_util.cc ('k') | chrome/installer/test/alternate_version_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698