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

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

Issue 9693055: Launch Google Update on uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 8 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 #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
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 }
OLDNEW
« no previous file with comments | « chrome/installer/util/google_update_settings.h ('k') | chrome/installer/util/google_update_settings_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698