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 functions that integrate Chrome in Windows shell. These | 5 // This file defines functions that integrate Chrome in Windows shell. These |
6 // functions can be used by Chrome as well as Chrome installer. All of the | 6 // functions can be used by Chrome as well as Chrome installer. All of the |
7 // work is done by the local functions defined in anonymous namespace in | 7 // work is done by the local functions defined in anonymous namespace in |
8 // this class. | 8 // this class. |
9 | 9 |
10 #include "chrome/installer/util/shell_util.h" | 10 #include "chrome/installer/util/shell_util.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "base/win/registry.h" | 37 #include "base/win/registry.h" |
38 #include "base/win/scoped_co_mem.h" | 38 #include "base/win/scoped_co_mem.h" |
39 #include "base/win/scoped_comptr.h" | 39 #include "base/win/scoped_comptr.h" |
40 #include "base/win/shortcut.h" | 40 #include "base/win/shortcut.h" |
41 #include "base/win/win_util.h" | 41 #include "base/win/win_util.h" |
42 #include "base/win/windows_version.h" | 42 #include "base/win/windows_version.h" |
43 #include "chrome/common/chrome_constants.h" | 43 #include "chrome/common/chrome_constants.h" |
44 #include "chrome/common/chrome_switches.h" | 44 #include "chrome/common/chrome_switches.h" |
45 #include "chrome/installer/util/browser_distribution.h" | 45 #include "chrome/installer/util/browser_distribution.h" |
46 #include "chrome/installer/util/install_util.h" | 46 #include "chrome/installer/util/install_util.h" |
| 47 #include "chrome/installer/util/installer_util_strings.h" |
47 #include "chrome/installer/util/l10n_string_util.h" | 48 #include "chrome/installer/util/l10n_string_util.h" |
48 #include "chrome/installer/util/master_preferences.h" | 49 #include "chrome/installer/util/master_preferences.h" |
49 #include "chrome/installer/util/master_preferences_constants.h" | 50 #include "chrome/installer/util/master_preferences_constants.h" |
50 #include "chrome/installer/util/util_constants.h" | 51 #include "chrome/installer/util/util_constants.h" |
51 #include "chrome/installer/util/work_item.h" | 52 #include "chrome/installer/util/work_item.h" |
52 | 53 |
53 #include "installer_util_strings.h" // NOLINT | |
54 | |
55 using base::win::RegKey; | 54 using base::win::RegKey; |
56 | 55 |
57 namespace { | 56 namespace { |
58 | 57 |
59 // An enum used to tell QuickIsChromeRegistered() which level of registration | 58 // An enum used to tell QuickIsChromeRegistered() which level of registration |
60 // the caller wants to confirm. | 59 // the caller wants to confirm. |
61 enum RegistrationConfirmationLevel { | 60 enum RegistrationConfirmationLevel { |
62 // Only look for Chrome's ProgIds. | 61 // Only look for Chrome's ProgIds. |
63 // This is sufficient when we are trying to determine the suffix of the | 62 // This is sufficient when we are trying to determine the suffix of the |
64 // currently running Chrome as shell integration registrations might not be | 63 // currently running Chrome as shell integration registrations might not be |
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2481 base::string16 key_path(ShellUtil::kRegClasses); | 2480 base::string16 key_path(ShellUtil::kRegClasses); |
2482 key_path.push_back(base::FilePath::kSeparators[0]); | 2481 key_path.push_back(base::FilePath::kSeparators[0]); |
2483 key_path.append(prog_id); | 2482 key_path.append(prog_id); |
2484 return InstallUtil::DeleteRegistryKey( | 2483 return InstallUtil::DeleteRegistryKey( |
2485 HKEY_CURRENT_USER, key_path, WorkItem::kWow64Default); | 2484 HKEY_CURRENT_USER, key_path, WorkItem::kWow64Default); |
2486 | 2485 |
2487 // TODO(mgiuca): Remove the extension association entries. This requires that | 2486 // TODO(mgiuca): Remove the extension association entries. This requires that |
2488 // the extensions associated with a particular prog_id are stored in that | 2487 // the extensions associated with a particular prog_id are stored in that |
2489 // prog_id's key. | 2488 // prog_id's key. |
2490 } | 2489 } |
OLD | NEW |