OLD | NEW |
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 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
14 #include "base/file_util.h" | |
15 #include "base/files/file_enumerator.h" | 14 #include "base/files/file_enumerator.h" |
| 15 #include "base/files/file_util.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/win/registry.h" | 22 #include "base/win/registry.h" |
23 #include "base/win/scoped_handle.h" | 23 #include "base/win/scoped_handle.h" |
24 #include "base/win/shortcut.h" | 24 #include "base/win/shortcut.h" |
25 #include "base/win/windows_version.h" | 25 #include "base/win/windows_version.h" |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 // If we need a reboot to continue, schedule the parent directories for | 1467 // If we need a reboot to continue, schedule the parent directories for |
1468 // deletion unconditionally. If they are not empty, the session manager | 1468 // deletion unconditionally. If they are not empty, the session manager |
1469 // will not delete them on reboot. | 1469 // will not delete them on reboot. |
1470 ScheduleParentAndGrandparentForDeletion(target_path); | 1470 ScheduleParentAndGrandparentForDeletion(target_path); |
1471 } else if (DeleteChromeDirectoriesIfEmpty(target_path) == DELETE_FAILED) { | 1471 } else if (DeleteChromeDirectoriesIfEmpty(target_path) == DELETE_FAILED) { |
1472 *uninstall_status = UNINSTALL_FAILED; | 1472 *uninstall_status = UNINSTALL_FAILED; |
1473 } | 1473 } |
1474 } | 1474 } |
1475 | 1475 |
1476 } // namespace installer | 1476 } // namespace installer |
OLD | NEW |