shell_util.h revision 0f1bc08d4cfcc34181b0b5cbf065c40f687bf740
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
3// found in the LICENSE file.
4//
5// This file declares methods that are useful for integrating Chrome in
6// Windows shell. These methods are all static and currently part of
7// ShellUtil class.
8
9#ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
10#define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
11
12#include <windows.h>
13
14#include <map>
15#include <vector>
16
17#include "base/basictypes.h"
18#include "base/files/file_path.h"
19#include "base/logging.h"
20#include "base/strings/string16.h"
21#include "chrome/installer/util/work_item_list.h"
22
23class BrowserDistribution;
24
25// This is a utility class that provides common shell integration methods
26// that can be used by installer as well as Chrome.
27class ShellUtil {
28 public:
29  // Input to any methods that make changes to OS shell.
30  enum ShellChange {
31    CURRENT_USER = 0x1,  // Make any shell changes only at the user level
32    SYSTEM_LEVEL = 0x2   // Make any shell changes only at the system level
33  };
34
35  // Chrome's default handler state for a given protocol.
36  enum DefaultState {
37    UNKNOWN_DEFAULT,
38    NOT_DEFAULT,
39    IS_DEFAULT,
40  };
41
42  // Typical shortcut directories. Resolved in GetShortcutPath().
43  // Also used in ShortcutLocationIsSupported().
44  enum ShortcutLocation {
45    SHORTCUT_LOCATION_DESKTOP,
46    SHORTCUT_LOCATION_QUICK_LAUNCH,
47    SHORTCUT_LOCATION_START_MENU,
48    SHORTCUT_LOCATION_TASKBAR_PINS,  // base::win::VERSION_WIN7 +
49    SHORTCUT_LOCATION_APP_SHORTCUTS,  // base::win::VERSION_WIN8 +
50  };
51
52  enum ShortcutOperation {
53    // Create a new shortcut (overwriting if necessary).
54    SHELL_SHORTCUT_CREATE_ALWAYS,
55    // Create the per-user shortcut only if its system-level equivalent (with
56    // the same name) is not present.
57    SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL,
58    // Overwrite an existing shortcut (fail if the shortcut doesn't exist).
59    // If the arguments are not specified on the new shortcut, keep the old
60    // shortcut's arguments.
61    SHELL_SHORTCUT_REPLACE_EXISTING,
62    // Update specified properties only on an existing shortcut.
63    SHELL_SHORTCUT_UPDATE_EXISTING,
64  };
65
66  // Properties for shortcuts. Properties set will be applied to
67  // the shortcut on creation/update. On update, unset properties are ignored;
68  // on create (and replaced) unset properties might have a default value (see
69  // individual property setters below for details).
70  // Callers are encouraged to use the setters provided which take care of
71  // setting |options| as desired.
72  struct ShortcutProperties {
73    enum IndividualProperties {
74      PROPERTIES_TARGET = 1 << 0,
75      PROPERTIES_ARGUMENTS = 1 << 1,
76      PROPERTIES_DESCRIPTION = 1 << 2,
77      PROPERTIES_ICON = 1 << 3,
78      PROPERTIES_APP_ID = 1 << 4,
79      PROPERTIES_SHORTCUT_NAME = 1 << 5,
80      PROPERTIES_DUAL_MODE = 1 << 6,
81      PROPERTIES_HOTKEY = 1 << 7,
82    };
83
84    explicit ShortcutProperties(ShellChange level_in)
85        : level(level_in), icon_index(0), dual_mode(false),
86          pin_to_taskbar(false), hotkey(0), options(0U) {}
87
88    // Sets the target executable to launch from this shortcut.
89    // This is mandatory when creating a shortcut.
90    void set_target(const base::FilePath& target_in) {
91      target = target_in;
92      options |= PROPERTIES_TARGET;
93    }
94
95    // Sets the arguments to be passed to |target| when launching from this
96    // shortcut.
97    // The length of this string must be less than MAX_PATH.
98    void set_arguments(const string16& arguments_in) {
99      // Size restriction as per MSDN at
100      // http://msdn.microsoft.com/library/windows/desktop/bb774954.aspx.
101      DCHECK(arguments_in.length() < MAX_PATH);
102      arguments = arguments_in;
103      options |= PROPERTIES_ARGUMENTS;
104    }
105
106    // Sets the localized description of the shortcut.
107    // The length of this string must be less than MAX_PATH.
108    void set_description(const string16& description_in) {
109      // Size restriction as per MSDN at
110      // http://msdn.microsoft.com/library/windows/desktop/bb774955.aspx.
111      DCHECK(description_in.length() < MAX_PATH);
112      description = description_in;
113      options |= PROPERTIES_DESCRIPTION;
114    }
115
116    // Sets the path to the icon (icon_index set to 0).
117    // icon index unless otherwise specified in master_preferences).
118    void set_icon(const base::FilePath& icon_in, int icon_index_in) {
119      icon = icon_in;
120      icon_index = icon_index_in;
121      options |= PROPERTIES_ICON;
122    }
123
124    // Sets the app model id for the shortcut (Win7+).
125    void set_app_id(const string16& app_id_in) {
126      app_id = app_id_in;
127      options |= PROPERTIES_APP_ID;
128    }
129
130    // Forces the shortcut's name to |shortcut_name_in|.
131    // Default: the current distribution's GetShortcutName(SHORTCUT_CHROME).
132    // The ".lnk" extension will automatically be added to this name.
133    void set_shortcut_name(const string16& shortcut_name_in) {
134      shortcut_name = shortcut_name_in;
135      options |= PROPERTIES_SHORTCUT_NAME;
136    }
137
138    // Sets whether this is a dual mode shortcut (Win8+).
139    // NOTE: Only the default (no arguments and default browser appid) browser
140    // shortcut in the Start menu (Start screen on Win8+) should be made dual
141    // mode.
142    void set_dual_mode(bool dual_mode_in) {
143      dual_mode = dual_mode_in;
144      options |= PROPERTIES_DUAL_MODE;
145    }
146
147    // Sets whether to pin this shortcut to the taskbar after creating it
148    // (ignored if the shortcut is only being updated).
149    // Note: This property doesn't have a mask in |options|.
150    void set_pin_to_taskbar(bool pin_to_taskbar_in) {
151      pin_to_taskbar = pin_to_taskbar_in;
152    }
153
154    void set_hotkey(int hotkey_in) {
155      hotkey = hotkey_in;
156      options |= PROPERTIES_HOTKEY;
157    }
158
159    bool has_target() const {
160      return (options & PROPERTIES_TARGET) != 0;
161    }
162
163    bool has_arguments() const {
164      return (options & PROPERTIES_ARGUMENTS) != 0;
165    }
166
167    bool has_description() const {
168      return (options & PROPERTIES_DESCRIPTION) != 0;
169    }
170
171    bool has_icon() const {
172      return (options & PROPERTIES_ICON) != 0;
173    }
174
175    bool has_app_id() const {
176      return (options & PROPERTIES_APP_ID) != 0;
177    }
178
179    bool has_shortcut_name() const {
180      return (options & PROPERTIES_SHORTCUT_NAME) != 0;
181    }
182
183    bool has_dual_mode() const {
184      return (options & PROPERTIES_DUAL_MODE) != 0;
185    }
186
187    bool has_hotkey() const {
188      return (options & PROPERTIES_HOTKEY) != 0;
189    }
190    // The level to install this shortcut at (CURRENT_USER for a per-user
191    // shortcut and SYSTEM_LEVEL for an all-users shortcut).
192    ShellChange level;
193
194    base::FilePath target;
195    string16 arguments;
196    string16 description;
197    base::FilePath icon;
198    int icon_index;
199    string16 app_id;
200    string16 shortcut_name;
201    bool dual_mode;
202    bool pin_to_taskbar;
203    int hotkey;
204    // Bitfield made of IndividualProperties. Properties set in |options| will
205    // be used to create/update the shortcut, others will be ignored on update
206    // and possibly replaced by default values on create (see individual
207    // property setters above for details on default values).
208    uint32 options;
209  };
210
211  // Relative path of the URL Protocol registry entry (prefixed with '\').
212  static const wchar_t* kRegURLProtocol;
213
214  // Relative path of DefaultIcon registry entry (prefixed with '\').
215  static const wchar_t* kRegDefaultIcon;
216
217  // Relative path of "shell" registry key.
218  static const wchar_t* kRegShellPath;
219
220  // Relative path of shell open command in Windows registry
221  // (i.e. \\shell\\open\\command).
222  static const wchar_t* kRegShellOpen;
223
224  // Relative path of registry key under which applications need to register
225  // to control Windows Start menu links.
226  static const wchar_t* kRegStartMenuInternet;
227
228  // Relative path of Classes registry entry under which file associations
229  // are added on Windows.
230  static const wchar_t* kRegClasses;
231
232  // Relative path of RegisteredApplications registry entry under which
233  // we add Chrome as a Windows application
234  static const wchar_t* kRegRegisteredApplications;
235
236  // The key path and key name required to register Chrome on Windows such
237  // that it can be launched from Start->Run just by name (chrome.exe).
238  static const wchar_t* kAppPathsRegistryKey;
239  static const wchar_t* kAppPathsRegistryPathName;
240
241  // Registry path that stores url associations on Vista.
242  static const wchar_t* kRegVistaUrlPrefs;
243
244  // File extensions that Chrome registers itself as the default handler
245  // for when the user makes Chrome the default browser.
246  static const wchar_t* kDefaultFileAssociations[];
247
248  // File extensions that Chrome registers itself as being capable of
249  // handling.
250  static const wchar_t* kPotentialFileAssociations[];
251
252  // Protocols that Chrome registers itself as the default handler for
253  // when the user makes Chrome the default browser.
254  static const wchar_t* kBrowserProtocolAssociations[];
255
256  // Protocols that Chrome registers itself as being capable of handling.
257  static const wchar_t* kPotentialProtocolAssociations[];
258
259  // Registry value name that is needed for ChromeHTML ProgId
260  static const wchar_t* kRegUrlProtocol;
261
262  // Relative registry path from \Software\Classes\ChromeHTML to the ProgId
263  // Application definitions.
264  static const wchar_t* kRegApplication;
265
266  // Registry value name for the AppUserModelId of an application.
267  static const wchar_t* kRegAppUserModelId;
268
269  // Registry value name for the description of an application.
270  static const wchar_t* kRegApplicationDescription;
271
272  // Registry value name for an application's name.
273  static const wchar_t* kRegApplicationName;
274
275  // Registry value name for the path to an application's icon.
276  static const wchar_t* kRegApplicationIcon;
277
278  // Registry value name for an application's company.
279  static const wchar_t* kRegApplicationCompany;
280
281  // Relative path of ".exe" registry key.
282  static const wchar_t* kRegExePath;
283
284  // Registry value name of the open verb.
285  static const wchar_t* kRegVerbOpen;
286
287  // Registry value name of the opennewwindow verb.
288  static const wchar_t* kRegVerbOpenNewWindow;
289
290  // Registry value name of the run verb.
291  static const wchar_t* kRegVerbRun;
292
293  // Registry value name for command entries.
294  static const wchar_t* kRegCommand;
295
296  // Registry value name for the DelegateExecute verb handler.
297  static const wchar_t* kRegDelegateExecute;
298
299  // Registry value name for the OpenWithProgids entry for file associations.
300  static const wchar_t* kRegOpenWithProgids;
301
302  // Returns true if |chrome_exe| is registered in HKLM with |suffix|.
303  // Note: This only checks one deterministic key in HKLM for |chrome_exe| and
304  // doesn't otherwise validate a full Chrome install in HKLM.
305  static bool QuickIsChromeRegisteredInHKLM(BrowserDistribution* dist,
306                                            const string16& chrome_exe,
307                                            const string16& suffix);
308
309  // Returns true if the current Windows version supports the presence of
310  // shortcuts at |location|.
311  static bool ShortcutLocationIsSupported(ShellUtil::ShortcutLocation location);
312
313  // Sets |path| to the path for a shortcut at the |location| desired for the
314  // given |level| (CURRENT_USER for per-user path and SYSTEM_LEVEL for
315  // all-users path).
316  // Returns false on failure.
317  static bool GetShortcutPath(ShellUtil::ShortcutLocation location,
318                              BrowserDistribution* dist,
319                              ShellChange level,
320                              base::FilePath* path);
321
322  // Updates shortcut in |location| (or creates it if |options| specify
323  // SHELL_SHORTCUT_CREATE_ALWAYS).
324  // |dist| gives the type of browser distribution currently in use.
325  // |properties| and |operation| affect this method as described on their
326  // invidividual definitions above.
327  // |location| may be one of SHORTCUT_LOCATION_DESKTOP,
328  // SHORTCUT_LOCATION_QUICK_LAUNCH, or SHORTCUT_LOCATION_START_MENU.
329  static bool CreateOrUpdateShortcut(
330      ShellUtil::ShortcutLocation location,
331      BrowserDistribution* dist,
332      const ShellUtil::ShortcutProperties& properties,
333      ShellUtil::ShortcutOperation operation);
334
335  // Returns the string "|icon_path|,|icon_index|" (see, for example,
336  // http://msdn.microsoft.com/library/windows/desktop/dd391573.aspx).
337  static string16 FormatIconLocation(const string16& icon_path, int icon_index);
338
339  // This method returns the command to open URLs/files using chrome. Typically
340  // this command is written to the registry under shell\open\command key.
341  // |chrome_exe|: the full path to chrome.exe
342  static string16 GetChromeShellOpenCmd(const string16& chrome_exe);
343
344  // This method returns the command to be called by the DelegateExecute verb
345  // handler to launch chrome on Windows 8. Typically this command is written to
346  // the registry under the HKCR\Chrome\.exe\shell\(open|run)\command key.
347  // |chrome_exe|: the full path to chrome.exe
348  static string16 GetChromeDelegateCommand(const string16& chrome_exe);
349
350  // Gets a mapping of all registered browser names (excluding browsers in the
351  // |dist| distribution) and their reinstall command (which usually sets
352  // browser as default).
353  // Given browsers can be registered in HKCU (as of Win7) and/or in HKLM, this
354  // method looks in both and gives precedence to values in HKCU as per the msdn
355  // standard: http://goo.gl/xjczJ.
356  static void GetRegisteredBrowsers(BrowserDistribution* dist,
357                                    std::map<string16, string16>* browsers);
358
359  // Returns the suffix this user's Chrome install is registered with.
360  // Always returns the empty string on system-level installs.
361  //
362  // This method is meant for external methods which need to know the suffix of
363  // the current install at run-time, not for install-time decisions.
364  // There are no guarantees that this suffix will not change later:
365  // (e.g. if two user-level installs were previously installed in parallel on
366  // the same machine, both without admin rights and with no user-level install
367  // having claimed the non-suffixed HKLM registrations, they both have no
368  // suffix in their progId entries (as per the old suffix rules). If they were
369  // to both fully register (i.e. click "Make Chrome Default" and go through
370  // UAC; or upgrade to Win8 and get the automatic no UAC full registration)
371  // they would then both get a suffixed registration as per the new suffix
372  // rules).
373  //
374  // |chrome_exe| The path to the currently installed (or running) chrome.exe.
375  static string16 GetCurrentInstallationSuffix(BrowserDistribution* dist,
376                                               const string16& chrome_exe);
377
378  // Returns the application name of the program under |dist|.
379  // This application name will be suffixed as is appropriate for the current
380  // install.
381  // This is the name that is registered with Default Programs on Windows and
382  // that should thus be used to "make chrome default" and such.
383  static string16 GetApplicationName(BrowserDistribution* dist,
384                                     const string16& chrome_exe);
385
386  // Returns the AppUserModelId for |dist|. This identifier is unconditionally
387  // suffixed with a unique id for this user on user-level installs (in contrast
388  // to other registration entries which are suffixed as described in
389  // GetCurrentInstallationSuffix() above).
390  static string16 GetBrowserModelId(BrowserDistribution* dist,
391                                    bool is_per_user_install);
392
393  // Returns an AppUserModelId composed of each member of |components| separated
394  // by dots.
395  // The returned appid is guaranteed to be no longer than
396  // chrome::kMaxAppModelIdLength (some of the components might have been
397  // shortened to enforce this).
398  static string16 BuildAppModelId(const std::vector<string16>& components);
399
400  // Returns true if Chrome can make itself the default browser without relying
401  // on the Windows shell to prompt the user. This is the case for versions of
402  // Windows prior to Windows 8.
403  static bool CanMakeChromeDefaultUnattended();
404
405  // Returns the DefaultState of Chrome for HTTP and HTTPS.
406  static DefaultState GetChromeDefaultState();
407
408  // Returns the DefaultState of Chrome for |protocol|.
409  static DefaultState GetChromeDefaultProtocolClientState(
410      const string16& protocol);
411
412  // Make Chrome the default browser. This function works by going through
413  // the url protocols and file associations that are related to general
414  // browsing, e.g. http, https, .html etc., and requesting to become the
415  // default handler for each. If any of these fails the operation will return
416  // false to indicate failure, which is consistent with the return value of
417  // ShellIntegration::GetDefaultBrowser.
418  //
419  // In the case of failure any successful changes will be left, however no
420  // more changes will be attempted.
421  // TODO(benwells): Attempt to undo any changes that were successfully made.
422  // http://crbug.com/83970
423  //
424  // shell_change: Defined whether to register as default browser at system
425  //               level or user level. If value has ShellChange::SYSTEM_LEVEL
426  //               we should be running as admin user.
427  // chrome_exe: The chrome.exe path to register as default browser.
428  // elevate_if_not_admin: On Vista if user is not admin, try to elevate for
429  //                       Chrome registration.
430  static bool MakeChromeDefault(BrowserDistribution* dist,
431                                int shell_change,
432                                const string16& chrome_exe,
433                                bool elevate_if_not_admin);
434
435  // Shows and waits for the Windows 8 "How do you want to open webpages?"
436  // dialog if Chrome is not already the default HTTP/HTTPS handler. Also does
437  // XP-era registrations if Chrome is chosen or was already the default. Do
438  // not use on pre-Win8 OSes.
439  //
440  // |dist| gives the type of browser distribution currently in use.
441  // |chrome_exe| The chrome.exe path to register as default browser.
442  static bool ShowMakeChromeDefaultSystemUI(BrowserDistribution* dist,
443                                            const string16& chrome_exe);
444
445  // Make Chrome the default application for a protocol.
446  // chrome_exe: The chrome.exe path to register as default browser.
447  // protocol: The protocol to register as the default handler for.
448  static bool MakeChromeDefaultProtocolClient(BrowserDistribution* dist,
449                                              const string16& chrome_exe,
450                                              const string16& protocol);
451
452  // Shows and waits for the Windows 8 "How do you want to open links of this
453  // type?" dialog if Chrome is not already the default |protocol|
454  // handler. Also does XP-era registrations if Chrome is chosen or was already
455  // the default for |protocol|. Do not use on pre-Win8 OSes.
456  //
457  // |dist| gives the type of browser distribution currently in use.
458  // |chrome_exe| The chrome.exe path to register as default browser.
459  // |protocol| is the protocol being registered.
460  static bool ShowMakeChromeDefaultProtocolClientSystemUI(
461      BrowserDistribution* dist,
462      const string16& chrome_exe,
463      const string16& protocol);
464
465  // Registers Chrome as a potential default browser and handler for filetypes
466  // and protocols.
467  // If Chrome is already registered, this method is a no-op.
468  // This method requires write access to HKLM (prior to Win8) so is just a
469  // best effort deal.
470  // If write to HKLM is required, but fails, and:
471  // - |elevate_if_not_admin| is true (and OS is Vista or above):
472  //   tries to launch setup.exe with admin priviledges (by prompting the user
473  //   with a UAC) to do these tasks.
474  // - |elevate_if_not_admin| is false (or OS is XP):
475  //   adds the ProgId entries to HKCU. These entries will not make Chrome show
476  //   in Default Programs but they are still useful because Chrome can be
477  //   registered to run when the user clicks on an http link or an html file.
478  //
479  // |chrome_exe| full path to chrome.exe.
480  // |unique_suffix| Optional input. If given, this function appends the value
481  // to default browser entries names that it creates in the registry.
482  // Currently, this is only used to continue an install with the same suffix
483  // when elevating and calling setup.exe with admin privileges as described
484  // above.
485  // |elevate_if_not_admin| if true will make this method try alternate methods
486  // as described above. This should only be true when following a user action
487  // (e.g. "Make Chrome Default") as it allows this method to UAC.
488  //
489  // Returns true if Chrome is successfully registered (or already registered).
490  static bool RegisterChromeBrowser(BrowserDistribution* dist,
491                                    const string16& chrome_exe,
492                                    const string16& unique_suffix,
493                                    bool elevate_if_not_admin);
494
495  // This method declares to Windows that Chrome is capable of handling the
496  // given protocol. This function will call the RegisterChromeBrowser function
497  // to register with Windows as capable of handling the protocol, if it isn't
498  // currently registered as capable.
499  // Declaring the capability of handling a protocol is necessary to register
500  // as the default handler for the protocol in Vista and later versions of
501  // Windows.
502  //
503  // If called by the browser and elevation is required, it will elevate by
504  // calling setup.exe which will again call this function with elevate false.
505  //
506  // |chrome_exe| full path to chrome.exe.
507  // |unique_suffix| Optional input. If given, this function appends the value
508  // to default browser entries names that it creates in the registry.
509  // |protocol| The protocol to register as being capable of handling.s
510  // |elevate_if_not_admin| if true will make this method try alternate methods
511  // as described above.
512  static bool RegisterChromeForProtocol(BrowserDistribution* dist,
513                                        const string16& chrome_exe,
514                                        const string16& unique_suffix,
515                                        const string16& protocol,
516                                        bool elevate_if_not_admin);
517
518  // Removes installed shortcut(s) at |location|.
519  // |level|: CURRENT_USER to remove per-user shortcuts, or SYSTEM_LEVEL to
520  // remove all-users shortcuts.
521  // |target_exe|: Shortcut target exe; shortcuts will only be deleted when
522  // their target is |target_exe|.
523  // If |location| is SHORTCUT_LOCATION_START_MENU, the shortcut folder specific
524  // to |dist| is deleted.
525  // Returns true if all shortcuts pointing to |target_exe| are successfully
526  // deleted, including the case where no such shortcuts are found.
527  static bool RemoveShortcuts(ShellUtil::ShortcutLocation location,
528                              BrowserDistribution* dist,
529                              ShellChange level,
530                              const base::FilePath& target_exe);
531
532  // Applies the updates in |properties| to all matching shortcuts in
533  // |location|, i.e.:
534  // - the shortcut's original target is |target_exe|,
535  // - the original arguments are non-empty.
536  // Returns true if all updates to matching shortcuts are successful, including
537  // the vacuous case where no matching shortcuts are found.
538  static bool UpdateShortcutsWithArgs(
539      ShellUtil::ShortcutLocation location,
540      BrowserDistribution* dist,
541      ShellChange level,
542      const base::FilePath& target_exe,
543      const ShellUtil::ShortcutProperties& properties);
544
545  // Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid
546  // preceded by a dot.
547  // This is guaranteed to be unique on the machine and 27 characters long
548  // (including the '.').
549  // This suffix is then meant to be added to all registration that may conflict
550  // with another user-level Chrome install.
551  // Note that prior to Chrome 21, the suffix registered used to be the user's
552  // username (see GetOldUserSpecificRegistrySuffix() below). We still honor old
553  // installs registered that way, but it was wrong because some of the
554  // characters allowed in a username are not allowed in a ProgId.
555  // Returns true unless the OS call to retrieve the username fails.
556  // NOTE: Only the installer should use this suffix directly. Other callers
557  // should call GetCurrentInstallationSuffix().
558  static bool GetUserSpecificRegistrySuffix(string16* suffix);
559
560  // Sets |suffix| to this user's username preceded by a dot. This suffix should
561  // only be used to support legacy installs that used this suffixing
562  // style.
563  // Returns true unless the OS call to retrieve the username fails.
564  // NOTE: Only the installer should use this suffix directly. Other callers
565  // should call GetCurrentInstallationSuffix().
566  static bool GetOldUserSpecificRegistrySuffix(string16* suffix);
567
568  // Returns the base32 encoding (using the [A-Z2-7] alphabet) of |bytes|.
569  // |size| is the length of |bytes|.
570  // Note: This method does not suffix the output with '=' signs as technically
571  // required by the base32 standard for inputs that aren't a multiple of 5
572  // bytes.
573  static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
574
575 private:
576  DISALLOW_COPY_AND_ASSIGN(ShellUtil);
577};
578
579
580#endif  // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
581