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

Side by Side Diff: chrome/installer/util/shell_util.h

Issue 10823178: Register Chrome in Open With for File Associations at install on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address roberts comments Created 8 years, 4 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
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 declares methods that are useful for integrating Chrome in 5 // This file declares methods that are useful for integrating Chrome in
6 // Windows shell. These methods are all static and currently part of 6 // Windows shell. These methods are all static and currently part of
7 // ShellUtil class. 7 // ShellUtil class.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Registry value name of the run verb. 118 // Registry value name of the run verb.
119 static const wchar_t* kRegVerbRun; 119 static const wchar_t* kRegVerbRun;
120 120
121 // Registry value name for command entries. 121 // Registry value name for command entries.
122 static const wchar_t* kRegCommand; 122 static const wchar_t* kRegCommand;
123 123
124 // Registry value name for the DelegateExecute verb handler. 124 // Registry value name for the DelegateExecute verb handler.
125 static const wchar_t* kRegDelegateExecute; 125 static const wchar_t* kRegDelegateExecute;
126 126
127 // Registry value name for the OpenWithProgids entry for file associations.
128 static const wchar_t* kRegOpenWithProgids;
129
127 // Returns true if |chrome_exe| is registered in HKLM with |suffix|. 130 // Returns true if |chrome_exe| is registered in HKLM with |suffix|.
128 // Note: This only checks one deterministic key in HKLM for |chrome_exe| and 131 // Note: This only checks one deterministic key in HKLM for |chrome_exe| and
129 // doesn't otherwise validate a full Chrome install in HKLM. 132 // doesn't otherwise validate a full Chrome install in HKLM.
130 static bool QuickIsChromeRegisteredInHKLM(BrowserDistribution* dist, 133 static bool QuickIsChromeRegisteredInHKLM(BrowserDistribution* dist,
131 const string16& chrome_exe, 134 const string16& chrome_exe,
132 const string16& suffix); 135 const string16& suffix);
133 136
134 // Creates Chrome shortcut on the Desktop. 137 // Creates Chrome shortcut on the Desktop.
135 // |dist| gives the type of browser distribution currently in use. 138 // |dist| gives the type of browser distribution currently in use.
136 // |chrome_exe| provides the target path information. 139 // |chrome_exe| provides the target path information.
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // required by the base32 standard for inputs that aren't a multiple of 5 441 // required by the base32 standard for inputs that aren't a multiple of 5
439 // bytes. 442 // bytes.
440 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); 443 static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
441 444
442 private: 445 private:
443 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 446 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
444 }; 447 };
445 448
446 449
447 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 450 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698