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 #include "chrome/installer/util/google_update_settings.h" | 5 #include "chrome/installer/util/google_update_settings.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 GetUpdatePolicyFromDword(value, &update_policy); | 524 GetUpdatePolicyFromDword(value, &update_policy); |
525 } | 525 } |
526 } | 526 } |
527 #endif // defined(GOOGLE_CHROME_BUILD) | 527 #endif // defined(GOOGLE_CHROME_BUILD) |
528 | 528 |
529 if (is_overridden != NULL) | 529 if (is_overridden != NULL) |
530 *is_overridden = found_override; | 530 *is_overridden = found_override; |
531 | 531 |
532 return update_policy; | 532 return update_policy; |
533 } | 533 } |
| 534 |
| 535 string16 GoogleUpdateSettings::GetUninstallCommandLine(bool system_install) { |
| 536 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; |
| 537 string16 cmd_line; |
| 538 RegKey update_key; |
| 539 |
| 540 if (update_key.Open(root_key, google_update::kRegPathGoogleUpdate, |
| 541 KEY_QUERY_VALUE) == ERROR_SUCCESS) { |
| 542 update_key.ReadValue(google_update::kRegUninstallCmdLine, &cmd_line); |
| 543 } |
| 544 |
| 545 return cmd_line; |
| 546 } |
OLD | NEW |