Chromium Code Reviews| 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 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 435 // should call GetCurrentInstallationSuffix(). | 435 // should call GetCurrentInstallationSuffix(). |
| 436 static bool GetOldUserSpecificRegistrySuffix(string16* suffix); | 436 static bool GetOldUserSpecificRegistrySuffix(string16* suffix); |
| 437 | 437 |
| 438 // Returns the base32 encoding (using the [A-Z2-7] alphabet) of |bytes|. | 438 // Returns the base32 encoding (using the [A-Z2-7] alphabet) of |bytes|. |
| 439 // |size| is the length of |bytes|. | 439 // |size| is the length of |bytes|. |
| 440 // Note: This method does not suffix the output with '=' signs as technically | 440 // Note: This method does not suffix the output with '=' signs as technically |
| 441 // 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 |
| 442 // bytes. | 442 // bytes. |
| 443 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); | 443 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); |
| 444 | 444 |
| 445 // Verify that a shortcut exists with the expected information. | |
| 446 // |exe_path| shortcut's exe | |
|
gab
2012/08/08 19:17:08
nit: Please all of these descriptions complete sen
Halli
2012/08/08 20:28:09
Done.
| |
| 447 // |shortcut| path to shortcut | |
| 448 // |description| shortcut's description | |
| 449 // |icon_index| The icon's index in the exe. | |
| 450 static bool VerifyChromeShortcut(const string16& exe_path, | |
| 451 const string16& shortcut, | |
| 452 const string16& description, | |
| 453 int icon_index); | |
| 445 private: | 454 private: |
| 446 DISALLOW_COPY_AND_ASSIGN(ShellUtil); | 455 DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
| 447 }; | 456 }; |
| 448 | 457 |
| 449 | 458 |
| 450 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ | 459 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ |
| OLD | NEW |